Better practice
Replaced `empty($conf->global->MAIN_MODULE_BARCODE)` with `empty($conf->barcode->enabled)`
This commit is contained in:
parent
ded4e061e1
commit
62b7ba607d
@ -1198,7 +1198,7 @@ class Form
|
|||||||
$sql.=")";
|
$sql.=")";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($conf->global->MAIN_MODULE_BARCODE))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
$sql .= " OR p.barcode LIKE '".$filterkey."'";
|
$sql .= " OR p.barcode LIKE '".$filterkey."'";
|
||||||
}
|
}
|
||||||
@ -1448,7 +1448,7 @@ class Form
|
|||||||
$sql.=" AND (pfp.ref_fourn LIKE '%".$filterkey."%' OR p.ref LIKE '%".$filterkey."%' OR p.label LIKE '%".$filterkey."%')";
|
$sql.=" AND (pfp.ref_fourn LIKE '%".$filterkey."%' OR p.ref LIKE '%".$filterkey."%' OR p.label LIKE '%".$filterkey."%')";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($conf->global->MAIN_MODULE_BARCODE))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
$sql .= " OR p.barcode LIKE '".$filterkey."'";
|
$sql .= " OR p.barcode LIKE '".$filterkey."'";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user