mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed not found user searched by email, if there's also a contact with that email
This commit is contained in:
parent
ee022cd40d
commit
097238311b
@ -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