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