diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 15a020cf5b..72d6d5ad2e 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -409,7 +409,7 @@ { static $cache_accountid; - if($cache_accountid[$accountid]) + if(isset($cache_accountid[$accountid]) && $cache_accountid[$accountid]) { $account_id = $cache_accountid[$accountid]; } @@ -528,6 +528,7 @@ $accounts[] = intval($this->db->f('acl_account')); } } + @reset($accounts); return $accounts; }