Procházet zdrojové kódy

fix numeric values being set as string

throwaway před 2 roky
rodič
revize
d20f0fcf88
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      docker/gen_config.php

+ 3 - 0
docker/gen_config.php

@@ -25,6 +25,9 @@ function type_to_string($n) {
                 return $n ? 'true' : 'false';
         }
         if ($type === "string") {
+                if(is_numeric($n)) {
+                        return $n;
+                }
                 return "\"$n\"";
         }
         if ($type === "array") {