From 9e4c6c6e728baae05510754dc2ac364fa4ed1972 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 29 May 2022 20:01:44 +0200 Subject: [PATCH] US County - fixed query --- application/models/Logbook_model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index be355f97..d6435aab 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -844,14 +844,13 @@ class Logbook_model extends CI_Model { function call_us_county($callsign) { $this->db->select('COL_CALL, COL_CNTY'); $this->db->where('COL_CALL', $callsign); - $where = "COL_NAME != \"\""; + $where = "COL_CNTY != \"\""; $this->db->where($where); $this->db->order_by("COL_TIME_ON", "desc"); $this->db->limit(1); $query = $this->db->get($this->config->item('table_name')); - $name = ""; if ($query->num_rows() > 0) { $data = $query->row();