Skip to content

Commit

Permalink
Merge pull request #8911 from ADDCreative/limit_int
Browse files Browse the repository at this point in the history
Cast limit to int
  • Loading branch information
eka7a committed Nov 21, 2020
2 parents 2c75bd0 + f6785c2 commit b992e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/admin/controller/catalog/product.php
Expand Up @@ -1257,7 +1257,7 @@ public function autocomplete() {
}

if (isset($this->request->get['limit'])) {
$limit = $this->request->get['limit'];
$limit = (int)$this->request->get['limit'];
} else {
$limit = 5;
}
Expand Down

0 comments on commit b992e20

Please sign in to comment.