update code toward php8 compliance

This commit is contained in:
Philippe GRAND 2022-12-30 12:45:22 +01:00
parent 0710031b32
commit c46e55aaeb

View File

@ -651,7 +651,7 @@ abstract class CommonDocGenerator
);
// Units
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
$resarray['line_unit'] = $outputlangs->trans($line->getLabelOfUnit('long'));
$resarray['line_unit_short'] = $outputlangs->trans($line->getLabelOfUnit('short'));
}