Relax state-validation a bit, clean up '...dok'

This commit is contained in:
DJ3CE
2024-03-29 16:49:52 +01:00
parent 92e3b2a1ec
commit 64e96f780f
2 changed files with 6 additions and 16 deletions

View File

@@ -34,7 +34,6 @@ class Contesting_model extends CI_Model {
$sql = "SELECT * from contest_session where station_id = " . $station_id;
$data = $this->db->query($sql);
return $data->row();
}
@@ -69,15 +68,11 @@ class Contesting_model extends CI_Model {
'exchangetype' => xss_clean($this->input->post('exchangetype', true)),
'exchangesent' => xss_clean($this->input->post('exch_sent', true)),
'serialsent' => xss_clean($this->input->post('exch_serial_s', true)),
'copytodok' => $this->input->post('copyexchangetodok', true) == "" ? 0 : xss_clean($this->input->post('copyexchangetodok', true)),
'copytodok' => $this->input->post('copyexchangeto', true) == "" ? 0 : xss_clean($this->input->post('copyexchangeto', true)),
'qso' => $qso,
'station_id' => $station_id,
);
if ($this->input->post('copyexchangeto')) {
$data['copytodok'] = xss_clean($this->input->post('copyexchangeto'));
}
$sql = "SELECT * from contest_session where station_id = " . $station_id;
$querydata = $this->db->query($sql);