mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
11e630da2a
commit
be1920b687
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user