mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #301 from JorisDebonnet/patch-1
Bugfix: avoid calling "new PaginatedList(null)"
This commit is contained in:
commit
dde32209f8
@ -962,7 +962,7 @@ class Blog_Controller extends Page_Controller {
|
||||
*/
|
||||
$dataRecord = $this->dataRecord;
|
||||
|
||||
$posts = new PaginatedList($this->blogPosts);
|
||||
$posts = new PaginatedList($this->getBlogPosts());
|
||||
|
||||
if($this->PostsPerPage > 0) {
|
||||
$posts->setPageLength($this->PostsPerPage);
|
||||
|
Loading…
Reference in New Issue
Block a user