diff options
author | lolcat <will@lolcat.ca> | 2024-02-27 04:32:52 +0000 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2024-02-27 04:32:52 +0000 |
commit | 3f88069d23cb87490a6522a9ed5be6af61aea928 (patch) | |
tree | 5cd419ad1d5e530fd763114209774c848b86fe2b /docker/gen_config.php | |
parent | a20d4de1e4d1a00c0d152136e5d7cd81481ace7b (diff) | |
parent | 5143d95014ac50a42cfe3e3b6c0a2e8466adf953 (diff) |
Merge pull request 'split instances if string otherwise treat as array' (#4) from feature/fix_parse_instances into master
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/4
Diffstat (limited to 'docker/gen_config.php')
-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"; } } |