From 82d5021dc77f949bda1faecd06f5bc619261ea4a Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 1 Apr 2022 16:17:05 +0200 Subject: [PATCH] Remove spare checks for user_id (as this is unset for unauthenicated API calls) --- 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 e40470ef..c3435613 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -469,7 +469,7 @@ class Logbook_model extends CI_Model { */ function exists_qrz_api_key($station_id) { $sql = 'select qrzapikey, qrzrealtime from station_profile - where station_id = ' . $station_id . ' and station_profile.user_id = ' . $this->session->userdata('user_id'); + where station_id = ' . $station_id; $query = $this->db->query($sql); @@ -1005,7 +1005,6 @@ class Logbook_model extends CI_Model { $this->db->from($this->config->item('table_name')); $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); - $this->db->where('station_profile.user_id', $this->session->userdata('user_id')); $this->db->where('COL_PRIMARY_KEY', $id); return $this->db->get();