From 909b59320dd0d93018baf3ff3a2046339b4770cc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 6 Apr 2021 09:47:01 +0200 Subject: [PATCH] spread operator does not take care of it automatic, have to use array_values to get ride of string keys --- preferences/inc/class.preferences_hooks.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index 9173fa1aff..c865143793 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -325,7 +325,7 @@ class preferences_hooks 'type' => 'multiselect', 'label' => 'Permanent time zone selection', 'name' => 'tz_selection', - 'values' => $tzs ? array_merge(...$tzs) : null, // only flat arrays supported + 'values' => $tzs ? array_merge(...array_values($tzs)) : null, // only flat arrays supported 'help' => 'Please select timezones, you want to be able to quickly switch between. Switch is NOT shown, if less then two are selected.', 'xmlrpc' => True, 'admin' => False,