From f325d3f0aa6ec53baf4d677e000c2f9d34c15f7b Mon Sep 17 00:00:00 2001 From: Dennis van den Heerik Date: Mon, 3 Feb 2020 09:49:27 +0100 Subject: [PATCH] arrayToObject : added support for float arrays --- Mplusqapiclient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mplusqapiclient.php b/Mplusqapiclient.php index 433742e..5e721d6 100755 --- a/Mplusqapiclient.php +++ b/Mplusqapiclient.php @@ -2,7 +2,7 @@ class MplusQAPIclient { - const CLIENT_VERSION = '1.27.4'; + const CLIENT_VERSION = '1.27.5'; const WSDL_TTL = 300; var $MIN_API_VERSION_MAJOR = 0; @@ -8712,7 +8712,7 @@ function arrayToObject($d, $leave_as_array=null, $debug=false) { elseif (is_array($d) and isset($d[0]) and is_array($d[0]) and isset($d[0]['group'])) { return array_map(__FUNCTION__, $d); } - elseif (isset($d[0]) and is_integer($d[0])) { + elseif (isset($d[0]) and (is_integer($d[0]) or is_float($d[0]))) { return array_map(__FUNCTION__, $d); } else {