Merge pull request #19015 from Hystepik/develop#2

FIX: boxes php 8.0 errors and warnings
This commit is contained in:
Laurent Destailleur 2021-10-19 11:09:44 +02:00 committed by GitHub
commit 32ffd6f0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ class box_actions extends ModeleBoxes
$this->info_box_contents[$line][2] = array(
'td' => 'class="center nowraponall"',
'text' => dol_print_date($datelimite, "dayhour", 'tzuserrel'),
'text' => $datelimite ? dol_print_date($datelimite, "dayhour", 'tzuserrel') : '',
'asis' => 1
);

View File

@ -85,7 +85,7 @@ class box_graph_nb_ticket_last_x_days extends ModeleBoxes
$param_day = 'DOLUSERCOOKIE_ticket_last_days';
if ($_POST[$param_day]) {
if (!empty($_POST[$param_day])) {
if ($_POST[$param_day] >= 15) {
$days = 14;
} else {

View File

@ -161,7 +161,7 @@ class box_supplier_orders_awaiting_reception extends ModeleBoxes
$this->info_box_contents[$line][] = array(
'td' => 'class="right"',
'text' => $delayIcon.'<span class="classfortooltip" title="'.$langs->trans('DateDeliveryPlanned').'"><i class="fa fa-dolly" ></i> '.dol_print_date($delivery_date, 'day', 'tzuserrel').'</span>',
'text' => $delayIcon.'<span class="classfortooltip" title="'.$langs->trans('DateDeliveryPlanned').'"><i class="fa fa-dolly" ></i> '.($delivery_date ? dol_print_date($delivery_date, 'day', 'tzuserrel') : '').'</span>',
'asis' => 1
);

View File

@ -1384,7 +1384,7 @@ class DolGraph
$textoflegend = $arrayofgroupslegend[$i]['legendwithgroup'];
} else {
$textoflegend = $this->Legend[$i];
$textoflegend = !empty($this->Legend[$i]) ? $this->Legend[$i] : '';
}
if ($usecolorvariantforgroupby) {