Skip to content

Commit

Permalink
Added int cast on admin SEO URL controller as per MB
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Dec 8, 2024
1 parent 5d324c1 commit a3f6e23
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions upload/admin/controller/design/seo_url.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public function add(): void {
}

if (isset($this->request->get['filter_store_id'])) {
$url .= '&filter_store_id=' . $this->request->get['filter_store_id'];
$url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id'];
}

if (isset($this->request->get['filter_language_id'])) {
$url .= '&filter_language_id=' . $this->request->get['filter_language_id'];
$url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id'];
}

if (isset($this->request->get['sort'])) {
Expand Down Expand Up @@ -109,11 +109,11 @@ public function edit(): void {
}

if (isset($this->request->get['filter_store_id'])) {
$url .= '&filter_store_id=' . $this->request->get['filter_store_id'];
$url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id'];
}

if (isset($this->request->get['filter_language_id'])) {
$url .= '&filter_language_id=' . $this->request->get['filter_language_id'];
$url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id'];
}

if (isset($this->request->get['sort'])) {
Expand Down Expand Up @@ -165,11 +165,11 @@ public function delete(): void {
}

if (isset($this->request->get['filter_store_id'])) {
$url .= '&filter_store_id=' . $this->request->get['filter_store_id'];
$url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id'];
}

if (isset($this->request->get['filter_language_id'])) {
$url .= '&filter_language_id=' . $this->request->get['filter_language_id'];
$url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id'];
}

if (isset($this->request->get['sort'])) {
Expand Down Expand Up @@ -249,11 +249,11 @@ protected function getList(): void {
}

if (isset($this->request->get['filter_store_id'])) {
$url .= '&filter_store_id=' . $this->request->get['filter_store_id'];
$url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id'];
}

if (isset($this->request->get['filter_language_id'])) {
$url .= '&filter_language_id=' . $this->request->get['filter_language_id'];
$url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id'];
}

if (isset($this->request->get['sort'])) {
Expand Down Expand Up @@ -344,11 +344,11 @@ protected function getList(): void {
}

if (isset($this->request->get['filter_store_id'])) {
$url .= '&filter_store_id=' . $this->request->get['filter_store_id'];
$url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id'];
}

if (isset($this->request->get['filter_language_id'])) {
$url .= '&filter_language_id=' . $this->request->get['filter_language_id'];
$url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id'];
}

if ($order == 'ASC') {
Expand Down Expand Up @@ -377,11 +377,11 @@ protected function getList(): void {
}

if (isset($this->request->get['filter_store_id'])) {
$url .= '&filter_store_id=' . $this->request->get['filter_store_id'];
$url .= '&filter_store_id=' . (int)$this->request->get['filter_store_id'];
}

if (isset($this->request->get['filter_language_id'])) {
$url .= '&filter_language_id=' . $this->request->get['filter_language_id'];
$url .= '&filter_language_id=' . (int)$this->request->get['filter_language_id'];
}

if (isset($this->request->get['sort'])) {
Expand Down

0 comments on commit a3f6e23

Please sign in to comment.