From d5fa67ff47d3d06bce698c126eafd78f00c7dfcb Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:34:31 +0200 Subject: [PATCH] Send in user_id --- application/models/User_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/User_model.php b/application/models/User_model.php index 9f6db5c91..c92fa27ac 100644 --- a/application/models/User_model.php +++ b/application/models/User_model.php @@ -457,7 +457,7 @@ class User_Model extends CI_Model { foreach (array_keys($this->frequency->defaultFrequencies) as $band) { if ($login) { - $qrg_unit = $this->user_options_model->get_options('frequency', array('option_name' => 'unit', 'option_key' => $band))->row()->option_value ?? ''; + $qrg_unit = $this->user_options_model->get_options('frequency', array('option_name' => 'unit', 'option_key' => $band), $u->row()->user_id)->row()->option_value ?? ''; } else { $qrg_unit = $this->session->userdata("qrgunit_$band") ?? ''; }