forked from Wavyzz/dolibarr
Fix : php 8 warnings v19.0 (#30799)
* fix php8 err * Fix php 8 * fix missing precommit hooks * Update htdocs/commande/list.php * Update htdocs/commande/list.php
This commit is contained in:
@@ -2272,7 +2272,7 @@ while ($i < $imaxinloop) {
|
||||
if (empty($typenArray)) {
|
||||
$typenArray = $formcompany->typent_array(1);
|
||||
}
|
||||
print $typenArray[$obj->typent_code];
|
||||
print $typenArray[$obj->typent_code]??'';
|
||||
print '</td>';
|
||||
if (!$i) {
|
||||
$totalarray['nbfield']++;
|
||||
@@ -2523,6 +2523,11 @@ while ($i < $imaxinloop) {
|
||||
if (!$i) {
|
||||
$totalarray['pos'][$totalarray['nbfield']] = 'total_margin';
|
||||
}
|
||||
|
||||
if (!isset($totalarray['val']['total_margin'])) {
|
||||
$totalarray['val']['total_margin'] = 0;
|
||||
}
|
||||
|
||||
$totalarray['val']['total_margin'] += $marginInfo['total_margin'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user