Skip to content

Commit

Permalink
> Bugfix: getVatGroupList now returns 'vatGroup' instead of 'return'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mplus Software committed Jul 24, 2014
1 parent 3edb254 commit f35320a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ public function updateRelation($relation)
try {
$result = $this->client->updateRelation($this->parser->convertRelation($relation));
return $this->parser->parseUpdateRelationResult($result);

} catch (SoapFault $e) {
throw new MplusQAPIException("SoapFault occurred: ".$e->getMessage(), 0, $e);
} catch (Exception $e) {
Expand Down Expand Up @@ -677,8 +676,8 @@ public function parseTerminalList($soapTerminalList) {
//----------------------------------------------------------------------------

public function parseVatGroupList($soapVatGroupList) {
if (isset($soapVatGroupList->return)) {
$soapVatGroupList = $soapVatGroupList->return;
if (isset($soapVatGroupList->vatGroup)) {
$soapVatGroupList = $soapVatGroupList->vatGroup;
}
$vatGroups = array();
foreach ($soapVatGroupList as $soapVatGroup) {
Expand Down

0 comments on commit f35320a

Please sign in to comment.