diff --git a/api/src/Framework.php b/api/src/Framework.php index eadebfe4f9..a2fc76daa5 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -860,9 +860,9 @@ abstract class Framework extends Framework\Extra unset($newarray); $apps = array(); - foreach($GLOBALS['egw_info']['user']['apps'] as $app => $data) + foreach((array)$GLOBALS['egw_info']['user']['apps'] as $app => $data) { - if (is_long($app)) + if (is_int($app)) { continue; }