Skip to content

Commit

Permalink
src: do not convert strings starting with '0' to int
Browse files Browse the repository at this point in the history
  • Loading branch information
tflanagan committed Aug 1, 2016
1 parent 7d0cec3 commit 1221206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ final public static function cleanXml2Arr(&$arr){
self::cleanXml2Arr($arr[$key]);
}

if(is_numeric($arr[$key])){
if(is_numeric($arr[$key]) && substr($arr[$key], 0, 1) === '0'){
$arr[$key] = (double) $arr[$key];
}else
if(is_string($arr[$key])){
Expand Down

0 comments on commit 1221206

Please sign in to comment.