Update Logbook_model.php

这个提交包含在:
Peter Goodhall 2023-07-08 14:32:42 +01:00
父节点 f070964f3b
当前提交 4dbc9bba08

查看文件

@ -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);