Skip to content

Commit b1e8700

Browse files
author
Aubron Wood
authored
Merge pull request #32 from pashamesh/fix-billing-reports-request
Fixed BillingReports `request` method
2 parents b1a7220 + d655dbb commit b1e8700

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/BillingReports.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ public function get_id()
111111
public function save()
112112
{
113113
$header = parent::post(null, "BillingReport", $this->to_array());
114+
115+
if (!isset($header['Location']))
116+
{
117+
return $this;
118+
}
119+
114120
$splitted = explode("/", $header['Location']);
115121
$this->Id = end($splitted);
116122

0 commit comments

Comments
 (0)