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:54:16 +00:00
parent d77a1d2b33
commit c2ec0ba5d7

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;