mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
fix PHP 8.0 error: Unsupported operand types: null + array
This commit is contained in:
parent
f6d756a0c1
commit
c53551ab2b
@ -412,7 +412,7 @@ class preferences_settings
|
||||
continue 2;
|
||||
|
||||
case 'notify':
|
||||
$vars = $GLOBALS['egw']->preferences->vars;
|
||||
$vars = $GLOBALS['egw']->preferences->vars ?? [];
|
||||
if (is_array($setting['values'])) $vars += $setting['values'];
|
||||
$GLOBALS['egw']->preferences->{$attribute}[$appname][$setting['name']] =
|
||||
$GLOBALS['egw']->preferences->lang_notify($GLOBALS['egw']->preferences->{$attribute}[$appname][$setting['name']], $vars);
|
||||
|
Loading…
Reference in New Issue
Block a user