Since QRZ delivers strange ADIFs check at least for existance of mandatory keys before processing them

This commit is contained in:
int2001
2024-10-03 13:46:43 +00:00
parent f77e39d319
commit 1e62ab5794

View File

@@ -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;
}