fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given

This commit is contained in:
Ralf Becker 2021-11-13 17:39:33 +01:00
parent 11e630da2a
commit be1920b687

View File

@ -1752,7 +1752,7 @@ abstract class Merge
break;
default:
$app = str_replace('_merge', '', get_class($this));
if(!in_array($app, array_keys($GLOBALS['egw_info']['apps'])))
if(!in_array($app, array_keys($GLOBALS['egw_info']['apps'] ?? [])))
{
$app = false;
}