* LDAP/Admin: empty groups showed all users, if selected in accounts-list

This commit is contained in:
Ralf Becker 2015-04-02 08:49:49 +00:00
parent e3d4a685af
commit a14c880102

View File

@ -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);