Skip to content

Commit

Permalink
Fixed Next and Previous Button not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
juLorenzo committed Oct 19, 2018
1 parent a7710b4 commit 6500347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Fusion/PaginationArrayImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6500347

Please sign in to comment.