summaryrefslogtreecommitdiff
path: root/docker/gen_config.php
diff options
context:
space:
mode:
authorgesang <gesang@itinerariummentis.org>2024-06-23 16:04:46 +0000
committergesang <gesang@itinerariummentis.org>2024-06-23 16:04:46 +0000
commit91116519ca1fc5cd15a1f0126718bf5875a224ff (patch)
tree836d93742d5544425e98a23d50eab2e3b2f3f719 /docker/gen_config.php
parent2b476d5a076bc7bbe742e19f556f90526b1304b3 (diff)
parent0b68d6b2a9928d1b9dae389fbf5b95056e678be0 (diff)
wtf
Diffstat (limited to 'docker/gen_config.php')
-rw-r--r--docker/gen_config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/gen_config.php b/docker/gen_config.php
index ceea117..b9e7730 100644
--- a/docker/gen_config.php
+++ b/docker/gen_config.php
@@ -66,10 +66,10 @@ foreach(($merged_config) as $key => $val){
// Handle case when original type of field is array and there is a type mismatch when a comma separted string is passed,
// then split on comma if string (and not numeric, boolean, null, etc)
//
- // except in the case where the inital value in default config is null. Assuming null
+ // except in the case where the inital value in default config is null or boolean. Assuming null and boolean
// in default config will be never be assigned an array
- if(gettype($from_config[$key]) != gettype($val) && !is_numeric($val) && !is_null($from_config[$key])) {
+ if(gettype($from_config[$key]) != gettype($val) && !is_numeric($val) && !is_null($from_config[$key]) && gettype($from_config[$key]) != "boolean") {
$stored_value = explode(",", $val);
}
$output = $output . "\tconst " . $key . " = " . type_to_string($stored_value) . ";\n";