mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #509 from 3Dgoo/patch-1
Fixing non int pagination variable server error SS3
This commit is contained in:
commit
b76f1e1840
@ -1043,7 +1043,7 @@ class Blog_Controller extends Page_Controller
|
|||||||
$posts->setPageLength($pageSize);
|
$posts->setPageLength($pageSize);
|
||||||
|
|
||||||
// Set current page
|
// Set current page
|
||||||
$start = $this->request->getVar($posts->getPaginationGetVar());
|
$start = (int)$this->request->getVar($posts->getPaginationGetVar());
|
||||||
$posts->setPageStart($start);
|
$posts->setPageStart($start);
|
||||||
|
|
||||||
return $posts;
|
return $posts;
|
||||||
|
Loading…
Reference in New Issue
Block a user