2
0
forked from Wavyzz/dolibarr

Merge pull request #27093 from defrance/patch-305

php V8 warning
This commit is contained in:
Laurent Destailleur
2023-12-19 16:12:40 +01:00
committed by GitHub

View File

@@ -374,9 +374,9 @@ if ($modecompta == 'CREANCES-DETTES') {
$j -= 12;
}
$monthj = 'month'.str_pad($j, 2, '0', STR_PAD_LEFT);
print '<td class="right" width="6%">'.price($totalpermonth[$j]).'</td>';
print '<td class="right" width="6%">'.price((empty($totalpermonth[$j]) ? 0 : $totalpermonth[$j])).'</td>';
}
print '<td class="right" width="6%"><b>'.price($totalpermonth['total']).'</b></td>';
print '<td class="right" width="6%"><b>'.price((empty($totalpermonth['total']) ? 0 : $totalpermonth['total'])).'</b></td>';
print '</tr>';
} else {
print $db->lasterror(); // Show last sql error