Skip to content

Commit bbba7e8

Browse files
committed
src: finally fixed converting 0
1 parent 864853e commit bbba7e8

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]) && strlen($arr[$key]) > 1 && substr($arr[$key], 0, 1) !== '0'){
499+
if(is_numeric($arr[$key]) && (substr($arr[$key], 0, 1) !== '0' || $arr[$key] === '0')){
500500
$arr[$key] = (double) $arr[$key];
501501
}else
502502
if(is_string($arr[$key])){

0 commit comments

Comments
 (0)