Skip to content

Commit

Permalink
src: fixed issue converting ints
Browse files Browse the repository at this point in the history
  • Loading branch information
tflanagan committed Aug 2, 2016
1 parent 8802809 commit 864853e
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]) && strlen($arr[$key]) > 1 && substr($arr[$key], 0, 1) === '0'){
if(is_numeric($arr[$key]) && strlen($arr[$key]) > 1 && substr($arr[$key], 0, 1) !== '0'){
$arr[$key] = (double) $arr[$key];
}else
if(is_string($arr[$key])){
Expand Down

0 comments on commit 864853e

Please sign in to comment.