fix PHP 8.0 error: Unsupported operand types: null + array

This commit is contained in:
Ralf Becker 2021-10-20 15:03:41 +02:00
parent f6d756a0c1
commit c53551ab2b

View File

@ -412,7 +412,7 @@ class preferences_settings
continue 2; continue 2;
case 'notify': case 'notify':
$vars = $GLOBALS['egw']->preferences->vars; $vars = $GLOBALS['egw']->preferences->vars ?? [];
if (is_array($setting['values'])) $vars += $setting['values']; if (is_array($setting['values'])) $vars += $setting['values'];
$GLOBALS['egw']->preferences->{$attribute}[$appname][$setting['name']] = $GLOBALS['egw']->preferences->{$attribute}[$appname][$setting['name']] =
$GLOBALS['egw']->preferences->lang_notify($GLOBALS['egw']->preferences->{$attribute}[$appname][$setting['name']], $vars); $GLOBALS['egw']->preferences->lang_notify($GLOBALS['egw']->preferences->{$attribute}[$appname][$setting['name']], $vars);