From 36e2a345fc6e8268d7dd3a641808ba3a3488552d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Thu, 14 Dec 2023 10:25:36 +0100 Subject: [PATCH] php V8 warning --- htdocs/compta/stats/byratecountry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/stats/byratecountry.php b/htdocs/compta/stats/byratecountry.php index a8c5f88e435..dced36d44a6 100644 --- a/htdocs/compta/stats/byratecountry.php +++ b/htdocs/compta/stats/byratecountry.php @@ -374,9 +374,9 @@ if ($modecompta == 'CREANCES-DETTES') { $j -= 12; } $monthj = 'month'.str_pad($j, 2, '0', STR_PAD_LEFT); - print ''.price($totalpermonth[$j]).''; + print ''.price((empty($totalpermonth[$j]) ? 0 : $totalpermonth[$j])).''; } - print ''.price($totalpermonth['total']).''; + print ''.price((empty($totalpermonth['total']) ? 0 : $totalpermonth['total'])).''; print ''; } else { print $db->lasterror(); // Show last sql error