From 864853e7d1f067900aed83b211d77d91d19016e6 Mon Sep 17 00:00:00 2001 From: Tristian Flanagan Date: Tue, 2 Aug 2016 17:15:22 +0300 Subject: [PATCH] src: fixed issue converting ints --- quickbase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickbase.php b/quickbase.php index 1c433cb..05ec7a0 100644 --- a/quickbase.php +++ b/quickbase.php @@ -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])){