Skip to content

Commit

Permalink
Merge branch 'fix-getRelationPoints-leegresult' into 'master'
Browse files Browse the repository at this point in the history
fix getRelationPoints functie error

See merge request mpluskassa/mplus-api-client!6
  • Loading branch information
freerk-mpluskassa committed Oct 30, 2018
2 parents 21872c1 + 38bd715 commit 8bcc168
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.idea/

/nbproject/
7 changes: 6 additions & 1 deletion Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4635,7 +4635,12 @@ public function parseAdjustPointsResult($soapAdjustPointsResult)

public function parseRelationPoints($soapRelationPoints)
{
return objectToArray($soapRelationPoints->relationPointsLst);
if (isset($soapRelationPoints->relationPointsLst)) {
return objectToArray($soapRelationPoints->relationPointsLst);
}
else {
return array();
}
}

//----------------------------------------------------------------------------
Expand Down

0 comments on commit 8bcc168

Please sign in to comment.