From e367dec6cda659d8ca4a696e2704fa6bf862633f Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Tue, 1 Sep 2020 22:58:56 +0200 Subject: [PATCH] Bugfixing edit modes I forgot to add the submode to the edit-function :-) --- application/models/Modes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/models/Modes.php b/application/models/Modes.php index 82354c46..76aaee7b 100644 --- a/application/models/Modes.php +++ b/application/models/Modes.php @@ -48,8 +48,14 @@ class Modes extends CI_Model { } function edit() { + if ($this->input->post('submode', true) == "") + $submode = null; + else + $submode = xss_clean($this->input->post('submode', true)); + $data = array( 'mode' => xss_clean($this->input->post('mode', true)), + 'submode' => $submode, 'qrgmode' => xss_clean(strtoupper($this->input->post('qrgmode', true))), 'active' => xss_clean($this->input->post('active', true)), );