mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-08 17:43:07 -05:00
fix numeric values being set as string
This commit is contained in:
parent
b078751e5b
commit
d20f0fcf88
1 changed files with 3 additions and 0 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue