diff --git a/lib/ShopifyResource.php b/lib/ShopifyResource.php index 3cea1f8..1b021d6 100644 --- a/lib/ShopifyResource.php +++ b/lib/ShopifyResource.php @@ -551,7 +551,7 @@ public function processResponse($responseArray, $dataKey = null) public function getLinks($responseHeaders){ $this->nextLink = $this->getLink($responseHeaders,'next'); - $this->prevLink = $this->getLink($responseHeaders,'prev'); + $this->prevLink = $this->getLink($responseHeaders,'previous'); } public function getLink($responseHeaders, $type='next'){ @@ -562,7 +562,6 @@ public function getLink($responseHeaders, $type='next'){ } if(!empty($responseHeaders['link'])) { - var_dump($responseHeaders['link']); if (stristr($responseHeaders['link'], '; rel="'.$type.'"') > -1) { $headerLinks = explode(',', $responseHeaders['link']); foreach ($headerLinks as $headerLink) {