From e745bce1ba694e04444883117122e5412d26990b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhtarudin=20Siregar=20=E3=83=84?= Date: Tue, 14 Aug 2018 15:08:02 +0700 Subject: [PATCH] Fixing province return null When i call RajaOngkir::province() return null, expected return array of list provinces. --- src/RajaOngkir.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RajaOngkir.php b/src/RajaOngkir.php index 25b34f1..dcdd3fe 100644 --- a/src/RajaOngkir.php +++ b/src/RajaOngkir.php @@ -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; } @@ -109,4 +109,4 @@ public function cost($origin, $destination, $weight, $courier) return self::_request('/cost', $options); } -} \ No newline at end of file +}