From 4dd62bfa11f5c4551c6812abe2c6d700683e46dd Mon Sep 17 00:00:00 2001 From: int2001 Date: Sun, 30 Jul 2023 17:53:13 +0000 Subject: [PATCH] Fixed station_id-Check at create_qso --- application/models/Logbook_model.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index cd14052c..9e4fa4ed 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -241,6 +241,13 @@ class Logbook_model extends CI_Model { $station_id = $CI->Stations->find_active(); } + $CI =& get_instance(); + $CI->load->model('Stations'); + if (!$CI->Stations->check_station_is_accessible($station_id)) { // Hard Exit if station_profile not accessible + return 'Station not accessible
'; + } + + // If station profile has been provided fill in the fields if($station_id != "0") { $station = $this->check_station($station_id);