2
0
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:
John BOTELLA
2024-08-31 19:42:15 +02:00
committed by GitHub
parent cfd56c0653
commit 079f6487fd
2 changed files with 7 additions and 2 deletions

View File

@@ -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'];
}