mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fix PHP 8.0 error: Unsupported operand types: null + array
This commit is contained in:
parent
a8cc4d3c33
commit
1b0ab9cd4b
@ -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