update code toward php8 compliance

This commit is contained in:
Philippe GRAND 2022-12-30 12:04:55 +01:00
parent 988eea0a36
commit 5b94ee35da

View File

@ -73,7 +73,7 @@ if ($nolinesbefore) {
print '<td class="linecolqty right">'.$langs->trans('Qty').'</td>';
if ($filtertype != 1) {
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
print '<td class="linecoluseunit left">';
print '<span id="title_units">';
print $langs->trans('Unit');
@ -145,7 +145,7 @@ print '<td class="bordertop nobottom linecolqty right"><input type="text" size="
print '</td>';
if ($filtertype != 1) {
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
$coldisplay++;
print '<td class="nobottom linecoluseunit left">';
print '</td>';