mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:19:06 +01:00
cast accounts->members(hips) to array, to cope without PHP warnings for not (longer) existing accounts
This commit is contained in:
parent
ed403f5301
commit
ac88a44f82
@ -150,7 +150,7 @@ class acl
|
|||||||
}
|
}
|
||||||
else
|
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);
|
if (is_array($no_groups)) $acl_acc_list = array_diff($acl_acc_list,$no_groups);
|
||||||
array_unshift($acl_acc_list,$this->account_id);
|
array_unshift($acl_acc_list,$this->account_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user