diff options
author | lolcat <will@lolcat.ca> | 2024-02-29 23:44:07 -0500 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2024-02-29 23:44:07 -0500 |
commit | d03d25109199fe8f8c510851d249a3a43d5b296d (patch) | |
tree | f486fefcbc78ee9b148fdcbb4d74a2322552e350 /docker | |
parent | c0cc73e9b37bc033dde4932dd3e0b05922062a1d (diff) | |
parent | 3f88069d23cb87490a6522a9ed5be6af61aea928 (diff) |
Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
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"; } } |