From e8b08eedbead424368ec417594930bfce4cea40f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 5 Feb 2017 14:00:20 +0100 Subject: [PATCH] fix PHP 7.1 Error: [] operator not supported for strings in Setup >> Configuration --- setup/config.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/setup/config.php b/setup/config.php index 2a83ca27bf..4504870359 100644 --- a/setup/config.php +++ b/setup/config.php @@ -132,14 +132,8 @@ $GLOBALS['egw_setup']->hook('config','setup'); foreach($vars as $value) { $valarray = explode('_',$value); - $type = $valarray[0]; - $new = $newval = ''; - - while($chunk = next($valarray)) - { - $new[] = $chunk; - } - $newval = implode(' ',$new); + $type = array_shift($valarray); + $newval = implode(' ',$valarray); switch ($type) {