From fe1d11982f8c9b22cc14dd176da3cc0aadf69953 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 2 Jan 2025 12:53:46 +0000 Subject: [PATCH] Fixes missing API-Key/Radio Bug --- application/controllers/Bandmap.php | 2 +- application/models/Cat.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Bandmap.php b/application/controllers/Bandmap.php index 8145030ca..db75c0009 100644 --- a/application/controllers/Bandmap.php +++ b/application/controllers/Bandmap.php @@ -13,7 +13,7 @@ class Bandmap extends CI_Controller { function index() { $this->load->model('cat'); $this->load->model('bands'); - $data['radios'] = $this->cat->radios(); + $data['radios'] = $this->cat->radios(true); $data['bands'] = $this->bands->get_user_bands_for_qso_entry(); $footerData = []; diff --git a/application/models/Cat.php b/application/models/Cat.php index c7bfc3ea7..edb4da45f 100644 --- a/application/models/Cat.php +++ b/application/models/Cat.php @@ -107,7 +107,7 @@ function radios($only_operator = false) { $this->db->select('id, radio'); $this->db->where('user_id', $this->session->userdata('user_id')); - if ($only_operator || ($this->session->userdata('clubstation') == 1 && !clubaccess_check(9))) { + if ($only_operator && ($this->session->userdata('clubstation') == 1 && !clubaccess_check(9))) { $this->db->where('operator', $this->session->userdata('source_uid')); } $query = $this->db->get('cat');