Skip to content

Commit 96e2cc0

Browse files
impr
1 parent 6548d3c commit 96e2cc0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Theme/Block/Html/Pager.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,12 +481,8 @@ private function getPageLimitParams(int $limit): array
481481
$data = [$this->getLimitVarName() => $limit];
482482

483483
$currentPage = $this->getCurrentPage();
484-
if ($currentPage === 1) {
485-
return $data;
486-
}
487-
488484
$availableCount = (int) ceil($this->getTotalNum() / $limit);
489-
if ($availableCount < $currentPage) {
485+
if ($currentPage !== 1 && $availableCount < $currentPage) {
490486
$data = array_merge($data, [$this->getPageVarName() => $availableCount === 1 ? null : $availableCount]);
491487
}
492488

0 commit comments

Comments
 (0)