quietened PHP Warning: array_keys() expects parameter 1 to be array, null given on line 106

This commit is contained in:
Ralf Becker 2011-08-11 07:31:47 +00:00
parent 9c82896a7b
commit 4f54abdda2

View File

@ -103,7 +103,7 @@ class hooks
if (!$no_permission_check)
{
// on install of a new egroupware both hook-apps and user apps may be empty/not set
$apps = array_intersect((array)$apps,(array)array_keys($GLOBALS['egw_info']['user']['apps']));
$apps = array_intersect((array)$apps,array_keys((array)$GLOBALS['egw_info']['user']['apps']));
}
if ($order)
{