From 03f2f85ede36a8edf3e953cb8cd7fe6e04a58ca3 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:07:41 +0200 Subject: [PATCH] Added fix for nulls on the other part, just in case --- application/views/statistics/qsltable.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/application/views/statistics/qsltable.php b/application/views/statistics/qsltable.php index d41a61601..dc0036bae 100644 --- a/application/views/statistics/qsltable.php +++ b/application/views/statistics/qsltable.php @@ -32,13 +32,13 @@ $qrztotal = 0; $clublogtotal = 0; foreach ($qsoarray as $mode => $value) { - $qsototal += $value[$band]['qso']; - $qsltotal += $value[$band]['qsl']; - $lotwtotal += $value[$band]['lotw']; - $eqsltotal += $value[$band]['eqsl']; - $qrztotal += $value[$band]['qrz']; - $clublogtotal += $value[$band]['clublog']; - $total = $value[$band]['qso'] + $value[$band]['qsl'] + $value[$band]['lotw'] + $value[$band]['eqsl'] + $value[$band]['qrz'] + $value[$band]['clublog']; + $qsototal += $value[$band]['qso'] ?? 0; + $qsltotal += $value[$band]['qsl'] ?? 0; + $lotwtotal += $value[$band]['lotw'] ?? 0; + $eqsltotal += $value[$band]['eqsl'] ?? 0; + $qrztotal += $value[$band]['qrz'] ?? 0; + $clublogtotal += $value[$band]['clublog'] ?? 0; + $total = ($value[$band]['qso'] ?? 0) + ($value[$band]['qsl'] ?? 0) + ($value[$band]['lotw'] ?? 0) + ($value[$band]['eqsl'] ?? 0) + ($value[$band]['qrz'] ?? 0) + ($value[$band]['clublog'] ??0 ); if ($total > 0) { echo '