From 1964fecc5d7f648334cd535a74d4b6086b1a84f7 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 1 Dec 2025 09:46:19 +0100 Subject: [PATCH] Fix code to show the active logbook --- application/controllers/Awards.php | 4 +--- application/views/awards/pl_polska/index.php | 15 ++------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 6da7591f9..48d59dcc4 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -2395,9 +2395,7 @@ class Awards extends CI_Controller { $this->load->model('logbooks_model'); $this->load->model('stations'); - // Get station profiles for multiselect - $data['station_profile'] = $this->stations->all_of_user(); - $data['active_station_id'] = $this->session->userdata('active_station_logbook'); + $data['active_station_logbook'] = $this->logbooks_model->find_name($this->session->userdata('active_station_logbook')); $this->load->model('award_pl_polska'); $this->load->model('bands'); diff --git a/application/views/awards/pl_polska/index.php b/application/views/awards/pl_polska/index.php index d4d04e1e0..ce0181c67 100644 --- a/application/views/awards/pl_polska/index.php +++ b/application/views/awards/pl_polska/index.php @@ -51,20 +51,9 @@
- +
- result() as $station) { - if ($station->station_id == $active_station_id) { - $active_station = $station; - break; - } - } - if ($active_station) { - echo '' . htmlspecialchars($active_station->station_profile_name) . ''; - } - ?> +