mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
fix PHP 8.0 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given
This commit is contained in:
parent
c212cf36ae
commit
dfec4360b3
@ -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…
x
Reference in New Issue
Block a user