Skip to content

Commit

Permalink
Merge pull request #16 from myparcelnl/hotfix_getConsignmentIds
Browse files Browse the repository at this point in the history
V1.1.8 hotfix_getConsignmentIds
  • Loading branch information
Reindert authored Jul 20, 2017
2 parents 5d94058 + 9ee7124 commit b48cda3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "myparcelnl/sdk",
"version": "v1.1.7",
"version": "v1.1.8",
"description": "This package is designed to send and receive data from MyParcel by means of an API.",
"homepage": "https://www.myparcel.nl",
"tags": ["MyParcel", "My Parcel", "Post NL", "PostNL"],
Expand Down
6 changes: 5 additions & 1 deletion src/Helper/MyParcelCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ public function setLatestData()
$params = implode(';', $consignmentIds) . '?size=300';
} else {
$referenceIds = $this->getConsignmentReferenceIds($key);
$params = '?reference_identifier=' . implode(';', $referenceIds) . '&size=300';
if ($referenceIds != null) {
$params = '?reference_identifier=' . implode(';', $referenceIds) . '&size=300';
} else {
return $this;
}
}

$request = (new MyParcelRequest())
Expand Down

0 comments on commit b48cda3

Please sign in to comment.