mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +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
|
* instance of the db class
|
||||||
*
|
*
|
||||||
* @var object
|
* @var egw_db
|
||||||
*/
|
*/
|
||||||
var $db;
|
var $db;
|
||||||
/**
|
/**
|
||||||
@ -445,6 +445,10 @@ class accounts_backend
|
|||||||
{
|
{
|
||||||
$where['account_type'] = $account_type;
|
$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__);
|
$this->db->select($table,$cols,$where,__LINE__,__FILE__);
|
||||||
if(!$this->db->next_record()) return false;
|
if(!$this->db->next_record()) return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user