From 7f8341b580c606b48f73a32efc378bc596f465af Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 25 Aug 2023 14:56:29 +0200 Subject: [PATCH] Of course we need to load the model before using it ... --- application/controllers/Logbook.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index 4abd170e..95cb05ff 100644 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -235,6 +235,7 @@ class Logbook extends CI_Controller { if($type == "SAT") { $this->db->where('COL_PROP_MODE', 'SAT'); } else { + $CI->load->model('logbook_model'); $this->db->where('COL_MODE', $CI->logbook_model->get_main_mode_from_mode($mode)); $this->db->where('COL_BAND', $band); $this->db->where('COL_PROP_MODE !=','SAT');