From 6ab3256439a2b5b73a90528e9e25518e5abe9110 Mon Sep 17 00:00:00 2001 From: Thomas Werzmirzowsky Date: Mon, 15 Nov 2021 19:54:01 +0100 Subject: [PATCH] set user_id on station location create --- application/models/Stations.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/Stations.php b/application/models/Stations.php index 4f16b8b0..c4db7311 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -52,6 +52,7 @@ class Stations extends CI_Model { function add() { // Create data array with field values $data = array( + 'user_id' => $this->session->userdata('user_id'), 'station_profile_name' => xss_clean($this->input->post('station_profile_name', true)), 'station_gridsquare' => xss_clean(strtoupper($this->input->post('gridsquare', true))), 'station_city' => xss_clean($this->input->post('city', true)),