Skip to content

Commit

Permalink
pagination limit fixes
Browse files Browse the repository at this point in the history
Improved pagination limit verifications
  • Loading branch information
mhcwebdesign committed Jun 24, 2024
1 parent cec6746 commit 09f4d4b
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() {
$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('theme_' . $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 @@ -85,7 +85,7 @@ public function info() {
$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('theme_' . $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() {
$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('theme_' . $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() {
$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('theme_' . $this->config->get('config_theme') . '_product_limit');
Expand Down

0 comments on commit 09f4d4b

Please sign in to comment.