From 6500347dae30e504aef86892b24a399c8a33cfb7 Mon Sep 17 00:00:00 2001 From: Lorenzo Scontrino Date: Fri, 19 Oct 2018 12:31:52 +0200 Subject: [PATCH] Fixed Next and Previous Button not showing --- Classes/Fusion/PaginationArrayImplementation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Fusion/PaginationArrayImplementation.php b/Classes/Fusion/PaginationArrayImplementation.php index 150f511..a5e0093 100644 --- a/Classes/Fusion/PaginationArrayImplementation.php +++ b/Classes/Fusion/PaginationArrayImplementation.php @@ -143,11 +143,11 @@ public function evaluate() } // add previous and next if ($this->paginationConfig['showNextAndPrevious']) { - if ($this->firstPage > 1 || $this->paginationConfig['alwaysShowNextAndPrevious']) { + if ($this->currentPage > 1 || $this->paginationConfig['alwaysShowNextAndPrevious']) { $pageArray = $this->addItemToTheStartOfPageArray($pageArray, $this->currentPage - 1, 'previous'); } - if ($this->lastPage < $this->numberOfPages || $this->paginationConfig['alwaysShowNextAndPrevious']) { - if($this->currentPage < $this->numberOfPages) { + if ($this->currentPage < $this->lastPage || $this->paginationConfig['alwaysShowNextAndPrevious']) { + if ($this->currentPage < $this->numberOfPages) { $pageArray = $this->addItemToTheEndOfPageArray($pageArray, $this->currentPage + 1, 'next'); } else { $pageArray = $this->addItemToTheEndOfPageArray($pageArray, $this->currentPage, 'next');