From c2ec0ba5d7da95ea79c015e687f9416d456bd35a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 24 Aug 2007 10:54:16 +0000 Subject: [PATCH] fixed not found user searched by email, if there's also a contact with that email --- phpgwapi/inc/class.accounts_sql.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 6dd3723724..7a1358e95d 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -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;