From 917f18bf0ccecd1f657f19570669e0ef8b07603d Mon Sep 17 00:00:00 2001 From: RameshT Date: Wed, 7 Aug 2024 11:48:44 +0530 Subject: [PATCH] Test Husky pre-commit hook. --- application/controllers/Form.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/controllers/Form.php b/application/controllers/Form.php index b5c9405..353a87a 100644 --- a/application/controllers/Form.php +++ b/application/controllers/Form.php @@ -18,11 +18,8 @@ class Form extends CI_Controller if (!$this->session->userdata('logged_in')) { // If not logged in, redirect to login page redirect('users/login'); - } - - $form_data = json_decode($this->input->raw_input_stream, true); + }$form_data = json_decode($this->input->raw_input_stream, true); $this->load->model('Form_model'); - if ($this->Form_model->save_form($form_data)) { $response = array('status' => 'success', 'message' => 'Form submitted successfully.'); } else {