quiten warning in login / no user-apps

This commit is contained in:
Ralf Becker 2020-04-28 10:14:48 +02:00
parent 515bad6d3b
commit 42b78ab708

View File

@ -149,7 +149,7 @@ abstract class Framework extends Framework\Extra
header('Content-type: text/html; charset='.Translation::charset());
// add CSP frame-src for apps which are just iframes
foreach($GLOBALS['egw_info']['user']['apps'] as $app => $data)
foreach($GLOBALS['egw_info']['user']['apps'] ?: [] as $app => $data)
{
if ($GLOBALS['egw_info']['apps'][$app]['status'] == 1 && !empty($data['index']) &&
preg_match('|^(https?://[^/]+)|', $data['index'], $matches))