lint(stickler)

This commit is contained in:
Antonin MARCHAL 2021-05-26 17:10:12 +02:00
parent 8dd2af42df
commit d11d1a2018

View File

@ -3025,7 +3025,7 @@ class Form
global $langs, $conf; global $langs, $conf;
global $price_level, $status, $finished; global $price_level, $status, $finished;
if(empty($status)){ if (empty($status)) {
$status = 1; $status = 1;
} }
@ -3111,7 +3111,7 @@ class Form
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_units u ON u.rowid = p.fk_unit"; $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_units u ON u.rowid = p.fk_unit";
} }
$sql .= " WHERE p.entity IN (".getEntity('product').")"; $sql .= " WHERE p.entity IN (".getEntity('product').")";
if($statut != -1){ if ($statut != -1) {
$sql .= " AND p.tobuy = ".$statut; $sql .= " AND p.tobuy = ".$statut;
} }
if (strval($filtertype) != '') { if (strval($filtertype) != '') {