Skip to content

Commit

Permalink
Merge branch 'fix_filterlist' into 'master'
Browse files Browse the repository at this point in the history
fix filterList

See merge request mpluskassa/mplus-api-client!28
  • Loading branch information
dennismpluskassa committed Apr 10, 2020
2 parents b2c791a + 58e3446 commit 6684c3b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 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.29.0';
const CLIENT_VERSION = '1.29.1';
const WSDL_TTL = 300;

var $MIN_API_VERSION_MAJOR = 0;
Expand Down Expand Up @@ -4276,13 +4276,12 @@ public function getLastErrorMessage()
private function filterList(&$soapResult, $listName, $dataName) {
if (is_object($soapResult)) {
if (isset($soapResult->$listName) && isset($soapResult->$listName->$dataName)) {
$soapResult->$dataName = $soapResult->$listName->$dataName;
$soapResult->$listName = $soapResult->$listName->$dataName;
} else {
$soapResult->$dataName = [];
$soapResult->$listName = [];
}
unset($soapResult->$listName);
}
} // END filterList()
} // END filterList()

//----------------------------------------------------------------------------
public function parseApiVersion($soapApiVersion)
Expand Down

0 comments on commit 6684c3b

Please sign in to comment.