Skip to content

Commit

Permalink
Changed isset to is_array, fixed #13
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgroenen committed Dec 14, 2015
1 parent 98cb022 commit 820d72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pinterest/Models/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function __construct( Pinterest $master, $items, $model ){
$this->items = $this->buildCollectionModels($this->items);

// Add pagination object
if( isset($this->response->page) && !empty($this->response->page['next']) ){
if( is_array($this->response->page) && !empty($this->response->page['next']) ){
$this->pagination = $this->response->page;
}
else{
Expand Down

0 comments on commit 820d72e

Please sign in to comment.