From 54ea0302229cb88c3651012d26e6b1d60ca554dd Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 24 Apr 2023 22:38:20 +0200 Subject: [PATCH] We should look for NULL instead of 'NULL' here ... --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 2257bb57..2f1b6853 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3637,7 +3637,7 @@ class Logbook_model extends CI_Model { } public function check_for_station_id() { - $this->db->where('station_id =', 'NULL'); + $this->db->where('station_id =', NULL); $query = $this->db->get($this->config->item('table_name')); if($query->num_rows() >= 1) { return 1;