From 2c59e50a1cd41a3cef8fd5a11adb0e4f6e6f3c5b Mon Sep 17 00:00:00 2001 From: JorisDebonnet Date: Tue, 13 Oct 2015 23:52:53 +0200 Subject: [PATCH] Bugfix: avoid feeding null to PaginatedList constructor --- code/model/Blog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/Blog.php b/code/model/Blog.php index 9a8cabe..2d07901 100644 --- a/code/model/Blog.php +++ b/code/model/Blog.php @@ -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);