From b18e1013f3a121d07c7b4f97c5f401b7ba64fca0 Mon Sep 17 00:00:00 2001 From: jtmnt Date: Mon, 5 Jul 2021 22:23:35 +0300 Subject: [PATCH] Add timestamp to 'cat' update, to enforce timestamp update in mysql when other values have not changed. --- application/models/Cat.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/models/Cat.php b/application/models/Cat.php index 6057b8b7..2f92b788 100644 --- a/application/models/Cat.php +++ b/application/models/Cat.php @@ -41,6 +41,7 @@ $data = array( 'frequency' => $result['frequency'], 'mode' => $result['mode'], + 'timestamp' => $result['timestamp'], ); $this->db->where('id', $radio_id); @@ -65,7 +66,8 @@ $data = array( 'radio' => $result['radio'], 'frequency' => $result['frequency'], - 'mode' => $result['mode'] + 'mode' => $result['mode'], + 'timestamp' => $result['timestamp'], ); } @@ -115,4 +117,4 @@ } -?> \ No newline at end of file +?>