From 0ace9a48d1e5c7d72bfec60d3139f03df66bb9e9 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 25 Apr 2024 07:37:18 +0200 Subject: [PATCH] Refactor model loading --- application/models/Jcc_model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/models/Jcc_model.php b/application/models/Jcc_model.php index caaeeb0ac..157a637d9 100644 --- a/application/models/Jcc_model.php +++ b/application/models/Jcc_model.php @@ -825,8 +825,7 @@ class Jcc_model extends CI_Model { ); function get_jcc_array($bands, $postdata) { - $CI =& get_instance(); - $CI->load->model('logbooks_model'); + $this->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); if (!$logbooks_locations_array) {