From 6c03984f536974812cac3254e946a075e998877a Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Mon, 16 Apr 2018 20:31:23 +0200 Subject: [PATCH] * support for some old servers, where arrays are used in config.lua --- system/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/functions.php b/system/functions.php index 795172e5..cb834ea3 100644 --- a/system/functions.php +++ b/system/functions.php @@ -917,6 +917,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(substr($value, 0 , 1) == '{' && substr($value, -1 , 1) == '}') { + // arrays are not supported yet + // just ignore the error + } else { foreach($result as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull