fix phpstan (#32063)

This commit is contained in:
Frédéric FRANCE 2024-11-22 15:24:11 +01:00 committed by GitHub
parent 1f386fb808
commit 2b264ae5d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1984,7 +1984,7 @@ if ($placeid > 0) {
if ($line->product_label && $line->desc) {
$htmlforlines .= '<br>';
}
$firstline = dolGetFirstLineOfText($line->desc, getDolGlobalString('TAKEPOS_SHOW_N_FIRST_LINES'));
$firstline = dolGetFirstLineOfText($line->desc, getDolGlobalInt('TAKEPOS_SHOW_N_FIRST_LINES'));
if ($firstline != $line->desc) {
$htmlforlines .= $form->textwithpicto(dolGetFirstLineOfText($line->desc), $line->desc);
} else {