forked from extern/egroupware
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:
parent
41ae19774d
commit
d277c8b6cf
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user