From 4dbc9bba08284245ad4f5f2de669d1fdc6d70347 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 8 Jul 2023 14:32:42 +0100 Subject: [PATCH] Update Logbook_model.php --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 2fe429a1..f860840e 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3930,7 +3930,7 @@ class Logbook_model extends CI_Model { */ function find_correct_station_id($station_callsign, $my_gridsquare) { $sql = 'select station_id from station_profile - where station_callsign = "' . $station_callsign . '" and station_gridsquare like "%' . substr($my_gridsquare,0, 4) . '%"'; + where station_callsign = "' . $station_callsign . '" and station_gridsquare = "' . substr($my_gridsquare,0, 4) . '"'; $query = $this->db->query($sql);