Skip to content

Commit

Permalink
fixed pagetoken
Browse files Browse the repository at this point in the history
  • Loading branch information
alaouy committed Dec 3, 2014
1 parent 3dbbcdf commit b44fedc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Alaouy/Youtube/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,16 @@ public function decodeList(&$apiData) {
'totalResults' => $resObj->pageInfo->totalResults,
'kind' => $resObj->kind,
'etag' => $resObj->etag,
'prevPageToken' => NULL,
'nextPageToken' => NULL
);

if(isset($resObj->prevPageToken)){
$this->page_info['prevPageToken'] = $resObj->prevPageToken;
}

if (isset($resObj->nextPageToken)) {
$this->page_info = $resObj->nextPageToken;
$this->page_info['nextPageToken'] = $resObj->nextPageToken;
}

$itemsArray = $resObj->items;
Expand Down

0 comments on commit b44fedc

Please sign in to comment.