From 39d1ca99645440fe0f1244f9d123a2a66f18fbba Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 14 Jul 2023 07:53:54 +0200 Subject: [PATCH] Adjust SQL to be less picky about callsigns --- application/models/Publicsearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Publicsearch.php b/application/models/Publicsearch.php index c67967b1..304f3d11 100644 --- a/application/models/Publicsearch.php +++ b/application/models/Publicsearch.php @@ -5,7 +5,7 @@ class Publicsearch extends CI_Model { function search($slug, $callsign) { if ($this->public_search_enabled($slug)) { $userid = $this->get_userid_for_slug($slug); - $this->db->where('COL_CALL', $callsign); + $this->db->like('COL_CALL', $callsign); $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); $this->db->join('lotw_users', 'lotw_users.callsign = '.$this->config->item('table_name').'.col_call', 'left outer'); $this->db->where('station_profile.user_id', $userid);