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']; }