update code toward php8 compliance

This commit is contained in:
Philippe GRAND 2022-12-30 12:43:12 +01:00
parent e5f08f6984
commit f6765fcd98

View File

@ -67,7 +67,7 @@ print '</td>';
print '<td class="linecolqty right">'.$form->textwithpicto($langs->trans('Qty'), ($filtertype != 1) ? $langs->trans("QtyRequiredIfNoLoss") : '').'</td>';
if ($filtertype != 1) {
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
print '<td class="linecoluseunit left">' . $langs->trans('Unit') . '</td>';
}