We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8ef19 commit a7710b4Copy full SHA for a7710b4
Classes/Fusion/PaginationArrayImplementation.php
@@ -147,7 +147,11 @@ public function evaluate()
147
$pageArray = $this->addItemToTheStartOfPageArray($pageArray, $this->currentPage - 1, 'previous');
148
}
149
if ($this->lastPage < $this->numberOfPages || $this->paginationConfig['alwaysShowNextAndPrevious']) {
150
- $pageArray = $this->addItemToTheEndOfPageArray($pageArray, $this->currentPage + 1, 'next');
+ if($this->currentPage < $this->numberOfPages) {
151
+ $pageArray = $this->addItemToTheEndOfPageArray($pageArray, $this->currentPage + 1, 'next');
152
+ } else {
153
+ $pageArray = $this->addItemToTheEndOfPageArray($pageArray, $this->currentPage, 'next');
154
+ }
155
156
157
if ($this->paginationConfig['showFirstAndLast']) {
0 commit comments