forked from extern/egroupware
fixed not found user searched by email, if there's also a contact with that email
This commit is contained in:
parent
d77a1d2b33
commit
c2ec0ba5d7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user