From b8e0ff15501ffe2bddc483477f7a40206ed8288b Mon Sep 17 00:00:00 2001 From: DB4SCW Date: Tue, 26 Nov 2024 11:35:06 +0000 Subject: [PATCH] fix bug counting contests --- application/controllers/Adif.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/application/controllers/Adif.php b/application/controllers/Adif.php index 0d8d93328..fd2929aa3 100644 --- a/application/controllers/Adif.php +++ b/application/controllers/Adif.php @@ -236,10 +236,12 @@ class adif extends CI_Controller { //check if contest_id exists in record and extract all found contest_ids if(array_key_exists('contest_id', $record)){ $contest_id = $record['contest_id']; - if(array_key_exists($contest_id, $contest_qso_infos)){ - $contest_qso_infos[$contest_id] += 1; - }else{ - $contest_qso_infos[$contest_id] = 1; + if($contest_id != ''){ + if(array_key_exists($contest_id, $contest_qso_infos)){ + $contest_qso_infos[$contest_id] += 1; + }else{ + $contest_qso_infos[$contest_id] = 1; + } } }