Skip to content

Commit

Permalink
Check if tracking_url holds content
Browse files Browse the repository at this point in the history
  • Loading branch information
cwdt committed Dec 5, 2018
1 parent d26eea6 commit 00ac064
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 00ac064

Please sign in to comment.