Skip to content

Commit

Permalink
Added pagination limit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 committed Jun 27, 2024
1 parent 0c7a247 commit c55aadf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion upload/catalog/controller/product/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function index(): void {
$page = 1;
}

if (isset($this->request->get['limit'])) {
if (isset($this->request->get['limit']) && (int)$this->request->get['limit'] > 0) {
$limit = (int)$this->request->get['limit'];
} else {
$limit = $this->config->get($this->config->get('config_theme') . '_product_limit');
Expand Down
2 changes: 1 addition & 1 deletion upload/catalog/controller/product/manufacturer.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function info(): void {
$page = 1;
}

if (isset($this->request->get['limit'])) {
if (isset($this->request->get['limit']) && (int)$this->request->get['limit'] > 0) {
$limit = (int)$this->request->get['limit'];
} else {
$limit = (int)$this->config->get($this->config->get('config_theme') . '_product_limit');
Expand Down
2 changes: 1 addition & 1 deletion upload/catalog/controller/product/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function index(): void {
$page = 1;
}

if (isset($this->request->get['limit'])) {
if (isset($this->request->get['limit']) && (int)$this->request->get['limit'] > 0) {
$limit = (int)$this->request->get['limit'];
} else {
$limit = $this->config->get($this->config->get('config_theme') . '_product_limit');
Expand Down
2 changes: 1 addition & 1 deletion upload/catalog/controller/product/special.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function index(): void {
$page = 1;
}

if (isset($this->request->get['limit'])) {
if (isset($this->request->get['limit']) && (int)$this->request->get['limit'] > 0) {
$limit = (int)$this->request->get['limit'];
} else {
$limit = $this->config->get($this->config->get('config_theme') . '_product_limit');
Expand Down

0 comments on commit c55aadf

Please sign in to comment.