From 45f6c3d6a01483b3da122739de859a487db7ce0c Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 12 May 2020 23:08:05 +0100 Subject: [PATCH] Forgot to readd selecting radio ID when i was debugging --- 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 bfd91564..399cb57d 100644 --- a/application/models/Cat.php +++ b/application/models/Cat.php @@ -93,7 +93,7 @@ function radio_status($id) { - return $this->db->query('SELECT *, CONVERT_TZ(`timestamp`, @@session.time_zone, \'+00:00\' ) as newtime FROM `cat` WHERE 1'); + return $this->db->query('SELECT *, CONVERT_TZ(`timestamp`, @@session.time_zone, \'+00:00\' ) as newtime FROM `cat` WHERE id = '.$id.' '); }