From 97e4f6bfe20188903b767b40a69dc06e7c0a265e Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 12 Dec 2021 09:36:33 +0100 Subject: [PATCH] [CAT] Fixed a user_id bug when updating the radio entry. --- application/models/Cat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Cat.php b/application/models/Cat.php index bf68541d..1bc63307 100644 --- a/application/models/Cat.php +++ b/application/models/Cat.php @@ -41,7 +41,7 @@ ); $this->db->where('id', $radio_id); - $this->db->where('user_id', $this->session->userdata('user_id')); + $this->db->where('user_id', $user_id); $this->db->update('cat', $data); } }