Skip to content

Commit

Permalink
Merge pull request #24 from cwdt/master
Browse files Browse the repository at this point in the history
Check if tracking_url holds content
  • Loading branch information
casperbakker authored Dec 9, 2018
2 parents d26eea6 + 00ac064 commit 96ae66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Picqer/Carriers/SendCloud/Parcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Parcel extends Model
'requestShipment',
'order_number',
'tracking_number',
'tracking_url',
'weight',
'total_insured_value',
'sender_address',
Expand All @@ -77,8 +78,7 @@ class Parcel extends Model

public function getTrackingUrl()
{
// SendCloud now gives us this undocumented field, so if it exists use this
if ( ! empty($this->tracking_url)) {
if (strlen($this->tracking_url) > 0) {
return $this->tracking_url;
}

Expand Down

0 comments on commit 96ae66e

Please sign in to comment.