From 2d73ebbefbc4ed9512288240af8f3c49d52ade25 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 9 Apr 2022 13:34:43 +0100 Subject: [PATCH] [CAT] Accept power for any radio type --- application/models/Cat.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/models/Cat.php b/application/models/Cat.php index c3303c2c1..35f3e06ab 100644 --- a/application/models/Cat.php +++ b/application/models/Cat.php @@ -86,6 +86,10 @@ 'timestamp' => $timestamp, ); + if (isset($result['power'])) { + $data['power'] = $result['power']; + } + $this->db->where('id', $radio_id); $this->db->where('user_id', $user_id); $this->db->update('cat', $data); @@ -148,6 +152,10 @@ 'timestamp' => $timestamp, 'user_id' => $user_id, ); + + if (isset($result['power'])) { + $data['power'] = $result['power']; + } } $this->db->insert('cat', $data);