From c53551ab2bb8786305f04379bb72687996666761 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 20 Oct 2021 15:03:41 +0200 Subject: [PATCH] fix PHP 8.0 error: Unsupported operand types: null + array --- preferences/inc/class.preferences_settings.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences/inc/class.preferences_settings.inc.php b/preferences/inc/class.preferences_settings.inc.php index c9636b19c6..fb286e8e55 100644 --- a/preferences/inc/class.preferences_settings.inc.php +++ b/preferences/inc/class.preferences_settings.inc.php @@ -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);