From 1e62ab5794feb7c09ebfcfc3ac0b0809fc23c70e Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 3 Oct 2024 13:46:43 +0000 Subject: [PATCH] Since QRZ delivers strange ADIFs check at least for existance of mandatory keys before processing them --- application/controllers/Qrz.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/controllers/Qrz.php b/application/controllers/Qrz.php index b479eefb6..e8c457939 100644 --- a/application/controllers/Qrz.php +++ b/application/controllers/Qrz.php @@ -410,6 +410,9 @@ class Qrz extends CI_Controller { $table = ""; while($record = $this->adif_parser->get_record()) { + if ((!(array_key_exists('time_on',$record))) || (!(array_key_exists('app_qrzlog_qsldate',$record))) || (!(array_key_exists('qso_date',$record))) || (!(array_key_exists('mode',$record))) || (!(array_key_exists('call',$record))) || (!(array_key_exists('band',$record))) ) { + continue; + } if ((!(isset($record['app_qrzlog_qsldate']))) || (!(isset($record['qso_date'])))) { continue; }