Skip to content

Commit f325d3f

Browse files
author
Dennis van den Heerik
committed
arrayToObject : added support for float arrays
1 parent 1de92a7 commit f325d3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mplusqapiclient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class MplusQAPIclient
44
{
5-
const CLIENT_VERSION = '1.27.4';
5+
const CLIENT_VERSION = '1.27.5';
66
const WSDL_TTL = 300;
77

88
var $MIN_API_VERSION_MAJOR = 0;
@@ -8712,7 +8712,7 @@ function arrayToObject($d, $leave_as_array=null, $debug=false) {
87128712
elseif (is_array($d) and isset($d[0]) and is_array($d[0]) and isset($d[0]['group'])) {
87138713
return array_map(__FUNCTION__, $d);
87148714
}
8715-
elseif (isset($d[0]) and is_integer($d[0])) {
8715+
elseif (isset($d[0]) and (is_integer($d[0]) or is_float($d[0]))) {
87168716
return array_map(__FUNCTION__, $d);
87178717
}
87188718
else {

0 commit comments

Comments
 (0)