forked from extern/egroupware
fix PHP 7.1 Error: [] operator not supported for strings in Setup >> Configuration
This commit is contained in:
parent
e0eaaee7f7
commit
e8b08eedbe
@ -132,14 +132,8 @@ $GLOBALS['egw_setup']->hook('config','setup');
|
|||||||
foreach($vars as $value)
|
foreach($vars as $value)
|
||||||
{
|
{
|
||||||
$valarray = explode('_',$value);
|
$valarray = explode('_',$value);
|
||||||
$type = $valarray[0];
|
$type = array_shift($valarray);
|
||||||
$new = $newval = '';
|
$newval = implode(' ',$valarray);
|
||||||
|
|
||||||
while($chunk = next($valarray))
|
|
||||||
{
|
|
||||||
$new[] = $chunk;
|
|
||||||
}
|
|
||||||
$newval = implode(' ',$new);
|
|
||||||
|
|
||||||
switch ($type)
|
switch ($type)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user