diff --git a/docker/gen_config.php b/docker/gen_config.php index dff39cb..cb12e3a 100644 --- a/docker/gen_config.php +++ b/docker/gen_config.php @@ -68,7 +68,8 @@ continue; $output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n"; } if($key === "INSTANCES") { - $output = $output . "\tconst " . $key . " = " . type_to_string(explode(',', $val)) . ";\n"; + $instances_list = gettype($val) === "string" ? explode(",", $val) : $val; + $output = $output . "\tconst " . $key . " = " . type_to_string($instances_list) . ";\n"; } }