cast accounts->members(hips) to array, to cope without PHP warnings for not (longer) existing accounts

This commit is contained in:
Ralf Becker 2012-08-09 08:50:22 +00:00
parent ed403f5301
commit ac88a44f82

View File

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