fix PHP 7.1 Error: [] operator not supported for strings in Setup >> Configuration

This commit is contained in:
Ralf Becker 2017-02-05 14:00:20 +01:00
parent e0eaaee7f7
commit e8b08eedbe

View File

@ -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)
{