summaryrefslogtreecommitdiff
path: root/docker/gen_config.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-02-29 23:44:07 -0500
committerlolcat <will@lolcat.ca>2024-02-29 23:44:07 -0500
commitd03d25109199fe8f8c510851d249a3a43d5b296d (patch)
treef486fefcbc78ee9b148fdcbb4d74a2322552e350 /docker/gen_config.php
parentc0cc73e9b37bc033dde4932dd3e0b05922062a1d (diff)
parent3f88069d23cb87490a6522a9ed5be6af61aea928 (diff)
Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
Diffstat (limited to 'docker/gen_config.php')
-rw-r--r--docker/gen_config.php3
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";
}
}