From 8c0945b4d023c107e5c690557daa4bf0a83309b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Tue, 16 May 2006 09:22:29 +0000 Subject: [PATCH] fix: count returns 1 if variable dosn't exists! --- phpgwapi/inc/class.accounts_ldap.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 89b1bad0d2..b720a15fa9 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -307,7 +307,8 @@ // add the list group members if($this->data['account_type'] == 'g' && $this->group_context ) { - $members = $this->member($this->account_id); + $members = $this->member($this->account_id) ? $this->member($this->account_id) : NULL; + #_debug_array($members); $newData['memberuid'] = array(); for($i=0;$i