Merge pull request #2372 from int2001/fix_no_band_no_qrg2

Made a mistake during last PR. Have to check BAND not record['band']
This commit is contained in:
Joerg (DJ7NT)
2025-10-02 18:52:57 +02:00
committed by GitHub

View File

@@ -4118,8 +4118,8 @@ class Logbook_model extends CI_Model {
}
}
if (($record['band'] ?? '') == '') {
log_message("Error", "Trying to import QSO without Band for station_id " . $station_id . ". QSO Date/Time: " . $time_on . " Mode: " . ($record['mode'] ?? '') . " Call: " . ($record['call'] ?? ''));
if (($band ?? '') == '') {
log_message("Error", "Trying to import QSO without Band for station_id " . $station_id . ". QSO Date/Time: " . $time_on . " at ".($record['freq'] ?? 'N/A')." Mode: " . ($record['mode'] ?? '') . " Call: " . ($record['call'] ?? ''));
$returner['error']=sprintf(__("QSO on %s: You tried to import a QSO without any given Band. This QSO wasn't imported. It's invalid"),$time_on);
return($returner);