From 7cc279f06cdaf7adac4197d50741d352fa5aeca8 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 22 Sep 2023 08:41:25 +0200 Subject: [PATCH] Improve errror handling on importing wrong station callsigns --- application/models/Logbook_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index c4f17a3e..9733b45e 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -2888,7 +2888,8 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray = } if ((!$skipStationCheck) && ($station_id != 0) && (strtoupper($record['station_callsign']) != strtoupper($station_profile_call))) { // Check if station_call from import matches profile ONLY when submitting via GUI. - return "Wrong station_callsign ".$record['station_callsign']." while importing QSO with ".$record['call']." for ".$station_profile_call." : SKIPPED"; + return "Wrong station callsign \"".htmlentities($record['station_callsign'])."\" while importing QSO with ".$record['call']." for ".$station_profile_call." : SKIPPED" . + "
See the Cloudlog Wiki for hints about errors in ADIF files."; } $CI =& get_instance();