Fix phpcs

This commit is contained in:
Laurent Destailleur 2022-03-09 22:25:29 +01:00
parent df0b20aad3
commit cc57d3dbc1

View File

@ -1804,7 +1804,7 @@ class Product extends CommonObject
if (!empty($conf->global->PRODUCT_USE_SUPPLIER_PACKAGING)) $sql .= ", pfp.packaging";
$sql .= " FROM ".MAIN_DB_PREFIX."product_fournisseur_price as pfp";
$sql .= " WHERE 1 = 1";
if ($product_id > 0) {
if ($product_id > 0) {
$sql .= " AND pfp.fk_product = ".((int) $product_id);
}
if ($fourn_ref != 'none') { $sql .= " AND pfp.ref_fourn = '".$fourn_ref."'";