Skip to content

Commit

Permalink
Merge pull request #1 from muhtarudinsiregar/fix-return-province
Browse files Browse the repository at this point in the history
Fixing province return null
  • Loading branch information
muhtarudinsiregar authored Aug 14, 2018
2 parents 280415f + e745bce commit 8ba23ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RajaOngkir.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private function _request($path, $options = null)

public function province($id = null)
{
if ($id = null) {
if ($id == null) {
return empty($this->province) ? self::_request('/province') : $this->province;
}

Expand Down Expand Up @@ -109,4 +109,4 @@ public function cost($origin, $destination, $weight, $courier)
return self::_request('/cost', $options);
}

}
}

0 comments on commit 8ba23ee

Please sign in to comment.