diff --git a/upload/catalog/model/localisation/currency.php b/upload/catalog/model/localisation/currency.php index c70e8796058..bb1238cf87b 100644 --- a/upload/catalog/model/localisation/currency.php +++ b/upload/catalog/model/localisation/currency.php @@ -28,7 +28,7 @@ public function editValueByCode(string $code, float $value): void { * @return array */ public function getCurrency(int $currency_id): array { - $query = $this->db->query("SELECT DISTINCT * FROM `" . DB_PREFIX . "currency` WHERE `currency_id` = '" . $this->db->escape($currency_id) . "'"); + $query = $this->db->query("SELECT DISTINCT * FROM `" . DB_PREFIX . "currency` WHERE `currency_id` = '" . (int)$currency_id . "'"); return $query->row; }