From 278301576146e578789e70871ed155567b00a892 Mon Sep 17 00:00:00 2001 From: int2001 Date: Sat, 14 Sep 2024 09:27:37 +0000 Subject: [PATCH] Fix some minor eQSL-Issues where values aren't set --- application/controllers/Eqsl.php | 2 +- application/libraries/EqslImporter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Eqsl.php b/application/controllers/Eqsl.php index 98eae0ac3..e8d7a836d 100644 --- a/application/controllers/Eqsl.php +++ b/application/controllers/Eqsl.php @@ -319,7 +319,7 @@ class eqsl extends CI_Controller { if (!isset($images) || count($images) == 0) { $h3 = $dom->getElementsByTagName('h3'); - if (isset($h3)) { + if (isset($h3) && ($h3->item(0) !== null)) { echo $h3->item(0)->nodeValue; } else { echo "Rate Limited"; diff --git a/application/libraries/EqslImporter.php b/application/libraries/EqslImporter.php index 7a057fce1..f0d213975 100644 --- a/application/libraries/EqslImporter.php +++ b/application/libraries/EqslImporter.php @@ -156,7 +156,7 @@ class EqslImporter // If there's a match for the QSO from the report in our log, it's confirmed via eQSL. // If we have a positive match from eQSL, record it in the DB according to the user's preferences - if ($record['qsl_sent'] == "Y") { + if ( (array_key_exists('qsl_sent',$record)) && ($record['qsl_sent'] == "Y")) { $record['qsl_sent'] = $config['eqsl_rcvd_mark']; }