Explorar o código

Merge branch 'master' of https://git.lolcat.ca/lolcat/4get

lolcat %!s(int64=2) %!d(string=hai) anos
pai
achega
d03d251091
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      docker/gen_config.php

+ 2 - 1
docker/gen_config.php

@@ -68,7 +68,8 @@ continue;
                 $output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n";
                 $output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n";
         }
         }
         if($key === "INSTANCES") {
         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";
         }
         }
 
 
 }
 }