File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ public function evaluate()
143143 }
144144 // add previous and next
145145 if ($ this ->paginationConfig ['showNextAndPrevious ' ]) {
146- if ($ this ->firstPage > 1 || $ this ->paginationConfig ['alwaysShowNextAndPrevious ' ]) {
146+ if ($ this ->currentPage > 1 || $ this ->paginationConfig ['alwaysShowNextAndPrevious ' ]) {
147147 $ pageArray = $ this ->addItemToTheStartOfPageArray ($ pageArray , $ this ->currentPage - 1 , 'previous ' );
148148 }
149- if ($ this ->lastPage < $ this ->numberOfPages || $ this ->paginationConfig ['alwaysShowNextAndPrevious ' ]) {
150- if ($ this ->currentPage < $ this ->numberOfPages ) {
149+ if ($ this ->currentPage < $ this ->lastPage || $ this ->paginationConfig ['alwaysShowNextAndPrevious ' ]) {
150+ if ($ this ->currentPage < $ this ->numberOfPages ) {
151151 $ pageArray = $ this ->addItemToTheEndOfPageArray ($ pageArray , $ this ->currentPage + 1 , 'next ' );
152152 } else {
153153 $ pageArray = $ this ->addItemToTheEndOfPageArray ($ pageArray , $ this ->currentPage , 'next ' );
You can’t perform that action at this time.
0 commit comments