From aaec66d512d32f3d39604dbdf05f7d8e5b0d4482 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 4 Nov 2025 11:23:41 +0100 Subject: [PATCH] Added loading of user_options_model --- application/models/Stationsetup_model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/models/Stationsetup_model.php b/application/models/Stationsetup_model.php index d162f503c..1e87c6f70 100644 --- a/application/models/Stationsetup_model.php +++ b/application/models/Stationsetup_model.php @@ -242,6 +242,7 @@ class Stationsetup_model extends CI_Model { $query = $this->db->query($sql, array($this->session->userdata('user_id'))); $result = $query->result(); + $this->load->model('user_options_model'); foreach($result as $location) { $options_object = $this->user_options_model->get_options('eqsl_default_qslmsg', array('option_name' => 'key_station_id', 'option_key' => $location->station_id))->result(); @@ -307,6 +308,7 @@ class Stationsetup_model extends CI_Model { $location_id = $this->db->insert_id(); if (!empty(trim($optiondata['eqsl_default_qslmsg']))) { + $this->load->model('user_options_model'); $this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array($location_id => $optiondata['eqsl_default_qslmsg'])); } }