2
0
forked from Wavyzz/dolibarr

fix warning in list_print_total.tpl.php (#28233)

* fix warning in list_print_total.tpl.php

* Update list.php
This commit is contained in:
Frédéric FRANCE
2024-02-18 15:24:14 +01:00
committed by GitHub
parent c2eeeabb4a
commit 144ed48fcb
2 changed files with 15 additions and 15 deletions

View File

@@ -2446,7 +2446,7 @@ while ($i < $imaxinloop) {
$userstatic->lastname = $obj->lastname; $userstatic->lastname = $obj->lastname;
$userstatic->firstname = $obj->firstname; $userstatic->firstname = $obj->firstname;
$userstatic->email = $obj->user_email; $userstatic->email = $obj->user_email;
$userstatic->statut = $obj->user_statut; $userstatic->status = $obj->user_statut;
$userstatic->entity = $obj->entity; $userstatic->entity = $obj->entity;
$userstatic->photo = $obj->photo; $userstatic->photo = $obj->photo;
$userstatic->office_phone = $obj->office_phone; $userstatic->office_phone = $obj->office_phone;

View File

@@ -15,7 +15,7 @@ if (isset($totalarray['pos'])) {
while ($i < $totalarray['nbfield']) { while ($i < $totalarray['nbfield']) {
$i++; $i++;
if (!empty($totalarray['pos'][$i])) { if (!empty($totalarray['pos'][$i])) {
printTotalValCell($totalarray['type'][$i], $totalarray['val'][$totalarray['pos'][$i]]); printTotalValCell($totalarray['type'][$i] ?? '', $totalarray['val'][$totalarray['pos'][$i]]);
} else { } else {
if ($i == 1) { if ($i == 1) {
if (is_null($limit) || $num < $limit) { if (is_null($limit) || $num < $limit) {