diff --git a/system/functions.php b/system/functions.php index 769cf61f7d..65a777c9ec 100644 --- a/system/functions.php +++ b/system/functions.php @@ -931,6 +931,12 @@ function load_config_lua($filename) if(count($lines) > 0) { foreach($lines as $ln => $line) { + $line = trim($line); + if(@$line[0] === '{' || @$line[0] === '}') { + // arrays are not supported yet + // just ignore the error + continue; + } $tmp_exp = explode('=', $line, 2); if(strpos($line, 'dofile') !== false) { @@ -957,9 +963,10 @@ function load_config_lua($filename) $result[$key] = (string) substr(substr($value, 1), 0, -1); elseif(in_array($value, array('true', 'false'))) $result[$key] = ($value === 'true') ? true : false; - elseif(@$value[0] === '{' && @$value[strlen($value) - 1] === '}') { + elseif(@$value[0] === '{') { // arrays are not supported yet // just ignore the error + continue; } else {