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