From ac88a44f82ee74820e6669ea8018aac08c40efbd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 9 Aug 2012 08:50:22 +0000 Subject: [PATCH] cast accounts->members(hips) to array, to cope without PHP warnings for not (longer) existing accounts --- phpgwapi/inc/class.acl.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 4677602d8b..0be7ffe092 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -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); }