From a14c8801024dde6d045faaad9edc277bd4642a84 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 2 Apr 2015 08:49:49 +0000 Subject: [PATCH] * LDAP/Admin: empty groups showed all users, if selected in accounts-list --- phpgwapi/inc/class.accounts_ldap.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 0bb7cf8f69..67872af356 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -751,11 +751,7 @@ class accounts_ldap $relevantAccounts = array(); $sri = ldap_search($this->ds,$this->group_context,"(&(objectClass=posixGroup)(gidnumber=" . abs($param['type']) . "))",array('memberuid')); $group = ldap_get_entries($this->ds, $sri); - - if (isset($group[0]['memberuid'])) - { - $fullSet = array_intersect_key($fullSet, array_flip($group[0]['memberuid'])); - } + $fullSet = $group[0]['memberuid'] ? array_intersect_key($fullSet, array_flip($group[0]['memberuid'])) : array(); } $totalcount = count($fullSet);