mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
cast accounts->members(hips) to array, to cope without PHP warnings for not (longer) existing accounts
This commit is contained in:
parent
cff9872f17
commit
46f700851a
@ -150,7 +150,7 @@ class acl
|
||||
}
|
||||
else
|
||||
{
|
||||
$acl_acc_list = $GLOBALS['egw']->accounts->memberships($this->account_id, true);
|
||||
$acl_acc_list = (array)$GLOBALS['egw']->accounts->memberships($this->account_id, true);
|
||||
if (is_array($no_groups)) $acl_acc_list = array_diff($acl_acc_list,$no_groups);
|
||||
array_unshift($acl_acc_list,$this->account_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user