Update html.form.class.php

This commit is contained in:
Laurent Destailleur 2021-05-26 17:20:09 +02:00 committed by GitHub
parent d11d1a2018
commit c3c0ad1c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3112,7 +3112,7 @@ class Form
}
$sql .= " WHERE p.entity IN (".getEntity('product').")";
if ($statut != -1) {
$sql .= " AND p.tobuy = ".$statut;
$sql .= " AND p.tobuy = ".((int) $statut);
}
if (strval($filtertype) != '') {
$sql .= " AND p.fk_product_type=".$this->db->escape($filtertype);