mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fix Scrutinizer "bugs"
This commit is contained in:
parent
02b0bf17f8
commit
72c22fbd44
@ -1028,7 +1028,8 @@ class Ldap
|
||||
* Query the members of a group
|
||||
*
|
||||
* @param int $_gid
|
||||
* @return array with uidnumber => uid pairs
|
||||
* @return array|boolean array with uidnumber => uid pairs,
|
||||
* false if $_git is not nummeric and can't be resolved to a nummeric gid
|
||||
*/
|
||||
function members($_gid)
|
||||
{
|
||||
@ -1084,7 +1085,7 @@ class Ldap
|
||||
// adding new memberships
|
||||
foreach($old_memberships ? array_diff($groups,$old_memberships) : $groups as $gid)
|
||||
{
|
||||
$members = $this->members($gid);
|
||||
if (!($members = $this->members($gid))) $members = array();
|
||||
$members[$account_id] = $this->id2name($account_id);
|
||||
$this->set_members($members,$gid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user