fixed not found user searched by email, if there's also a contact with that email

This commit is contained in:
Ralf Becker 2007-08-24 10:53:26 +00:00
parent ee022cd40d
commit 097238311b

View File

@ -37,7 +37,7 @@ class accounts_backend
/**
* instance of the db class
*
* @var object
* @var egw_db
*/
var $db;
/**
@ -445,6 +445,10 @@ class accounts_backend
{
$where['account_type'] = $account_type;
}
else
{
$where[] = 'account_id IS NOT NULL'; // otherwise contacts with eg. the same email hide the accounts!
}
$this->db->select($table,$cols,$where,__LINE__,__FILE__);
if(!$this->db->next_record()) return false;