Bugfix: avoid feeding null to PaginatedList constructor

This commit is contained in:
JorisDebonnet 2015-10-13 23:52:53 +02:00 committed by Joris Debonnet
parent bb9beb3953
commit 2c59e50a1c

View File

@ -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);