diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php
index 9c7f3fb77..809f1971b 100644
--- a/application/models/Logbook_model.php
+++ b/application/models/Logbook_model.php
@@ -4648,9 +4648,13 @@ class Logbook_model extends CI_Model {
$my_error = "";
- if (validateADIFDate($record['qso_date']) != true) {
- log_message("Error", "Trying to import QSO with invalid date: " . $record['qso_date']. " for station_id " . $station_id . ". Call: " . ($record['call'] ?? '') . " Mode: " . ($record['mode'] ?? '') . " Band: " . ($record['band'] ?? ''));
- $returner['error']=__("QSO on")." ".$record['qso_date'].": ".__("You tried to import a QSO without valid date. This QSO wasn't imported. It's invalid") . "
";
+ if (validateADIFDate($record['qso_date'] ?? '') != true) {
+ $qso_date = $record['qso_date'] ?? '';
+ $call = $record['call'] ?? '';
+ $mode = $record['mode'] ?? '';
+ $band = $record['band'] ?? '';
+ log_message("Error", "Trying to import QSO with invalid date: " . $qso_date. " for station_id " . $station_id . ". Call: " . $call . " Mode: " . $mode . " Band: " . $band);
+ $returner['error']=__("You tried to import a QSO without valid date. This QSO wasn't imported. It's invalid") . ". Call: " . $call . ", Mode: " . $mode . ", Band: " . $band . "
";
return($returner);
}
diff --git a/application/views/adif/import_success.php b/application/views/adif/import_success.php
index 38759ed09..2a8ce1788 100644
--- a/application/views/adif/import_success.php
+++ b/application/views/adif/import_success.php
@@ -43,7 +43,7 @@
= __("We found the following numbers of QSOs for the following contest IDs:")?>
-= __("You might have ADIF errors, the QSOs have still been added. Please check the following information:") ?>
+= __("You might have ADIF errors. Please check the following information:") ?>
= $adif_errors ?>