From 41eeb0a1a3419fd4a734b948228d5e7d15c2dd41 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 27 Apr 2017 08:10:15 -0600 Subject: [PATCH] Avoid warning about app list being null instead of array if there's no apps Appears to happen when session expires --- api/src/loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/loader.php b/api/src/loader.php index b98c25039e..3d1f855228 100644 --- a/api/src/loader.php +++ b/api/src/loader.php @@ -144,7 +144,7 @@ if ($GLOBALS['egw_info']['flags']['currentapp'] != 'login') unset($_SESSION[Session::EGW_INFO_CACHE]['apps']); // store only which apps user has, Session::verify restores it from egw_info[apps] - $_SESSION[Session::EGW_INFO_CACHE]['user']['apps'] = array_keys($_SESSION[Session::EGW_INFO_CACHE]['user']['apps']); + $_SESSION[Session::EGW_INFO_CACHE]['user']['apps'] = array_keys((array)$_SESSION[Session::EGW_INFO_CACHE]['user']['apps']); $_SESSION[Session::EGW_OBJECT_CACHE] = serialize($GLOBALS['egw']); }