Avoid warning about app list being null instead of array if there's no apps

Appears to happen when session expires
This commit is contained in:
nathangray 2017-04-27 08:10:15 -06:00
parent b8513e7be9
commit 41eeb0a1a3

View File

@ -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']);
}