mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Bugfix: avoid feeding null to PaginatedList constructor
This commit is contained in:
parent
bb9beb3953
commit
2c59e50a1c
@ -962,7 +962,7 @@ class Blog_Controller extends Page_Controller {
|
|||||||
*/
|
*/
|
||||||
$dataRecord = $this->dataRecord;
|
$dataRecord = $this->dataRecord;
|
||||||
|
|
||||||
$posts = new PaginatedList($this->blogPosts);
|
$posts = new PaginatedList($this->getBlogPosts());
|
||||||
|
|
||||||
if($this->PostsPerPage > 0) {
|
if($this->PostsPerPage > 0) {
|
||||||
$posts->setPageLength($this->PostsPerPage);
|
$posts->setPageLength($this->PostsPerPage);
|
||||||
|
Loading…
Reference in New Issue
Block a user