From 023ff0d269556362b3d8b4bfed53612f1abe15df Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 2 Oct 2025 16:45:55 +0000 Subject: [PATCH] Made a mistake during last PR. Have to check BAND not record['band'] --- application/models/Logbook_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index ed3362626..eec72ec99 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -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);