diff options
author | throwaway <developerthrowaway@protonmail.com> | 2024-02-26 20:13:59 -0800 |
---|---|---|
committer | throwaway <developerthrowaway@protonmail.com> | 2024-02-26 20:13:59 -0800 |
commit | ba5cd270071023dff45151adb498974a47c53b80 (patch) | |
tree | d896f6cd104dc10bcd2012a3d03340d76f6e3c87 /docker | |
parent | c652e8e20f3cecdca73cd033d63826edbb1a50f8 (diff) |
split instances if string otherwise treat as array
Diffstat (limited to 'docker')
-rw-r--r-- | docker/gen_config.php | 3 |
1 files changed, 2 insertions, 1 deletions
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"; } } |