Merge pull request #509 from 3Dgoo/patch-1

Fixing non int pagination variable server error SS3
This commit is contained in:
Dylan Wagstaff 2018-02-20 10:56:29 +13:00 committed by GitHub
commit b76f1e1840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1043,7 +1043,7 @@ class Blog_Controller extends Page_Controller
$posts->setPageLength($pageSize);
// Set current page
$start = $this->request->getVar($posts->getPaginationGetVar());
$start = (int)$this->request->getVar($posts->getPaginationGetVar());
$posts->setPageStart($start);
return $posts;