From f2d349cf2cd6304d797a4b6e2e2d7bbf6fa2952d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 21 May 2021 09:51:48 +0200 Subject: [PATCH] fix PHP Warning on login page --- api/src/Framework.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }