Skip to content

Commit 6684c3b

Browse files
Merge branch 'fix_filterlist' into 'master'
fix filterList See merge request mpluskassa/mplus-api-client!28
2 parents b2c791a + 58e3446 commit 6684c3b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Mplusqapiclient.php

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

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

88
var $MIN_API_VERSION_MAJOR = 0;
@@ -4276,13 +4276,12 @@ public function getLastErrorMessage()
42764276
private function filterList(&$soapResult, $listName, $dataName) {
42774277
if (is_object($soapResult)) {
42784278
if (isset($soapResult->$listName) && isset($soapResult->$listName->$dataName)) {
4279-
$soapResult->$dataName = $soapResult->$listName->$dataName;
4279+
$soapResult->$listName = $soapResult->$listName->$dataName;
42804280
} else {
4281-
$soapResult->$dataName = [];
4281+
$soapResult->$listName = [];
42824282
}
4283-
unset($soapResult->$listName);
42844283
}
4285-
} // END filterList()
4284+
} // END filterList()
42864285

42874286
//----------------------------------------------------------------------------
42884287
public function parseApiVersion($soapApiVersion)

0 commit comments

Comments
 (0)