diff options
author | throwaway <developerthrowaway@protonmail.com> | 2024-06-19 19:24:01 -0700 |
---|---|---|
committer | throwaway <developerthrowaway@protonmail.com> | 2024-06-19 19:24:01 -0700 |
commit | 5ef7c8b85273001efaa437a7311cfd4946b0c854 (patch) | |
tree | 70f02cb3dedb0f22f8d1817e862c64cde62348ac /docker/gen_config.php | |
parent | 40da72e8554e9526379397a8c68f2895292a79c2 (diff) |
add documentation
Diffstat (limited to 'docker/gen_config.php')
-rw-r--r-- | docker/gen_config.php | 4 |
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"; |