Skip to content

Commit

Permalink
arrayToObject : added support for float arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis van den Heerik committed Feb 3, 2020
1 parent 1de92a7 commit f325d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f325d3f

Please sign in to comment.