Skip to content

Commit 1221206

Browse files
committed
src: do not convert strings starting with '0' to int
1 parent 7d0cec3 commit 1221206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickbase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ final public static function cleanXml2Arr(&$arr){
496496
self::cleanXml2Arr($arr[$key]);
497497
}
498498

499-
if(is_numeric($arr[$key])){
499+
if(is_numeric($arr[$key]) && substr($arr[$key], 0, 1) === '0'){
500500
$arr[$key] = (double) $arr[$key];
501501
}else
502502
if(is_string($arr[$key])){

0 commit comments

Comments
 (0)