mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Relax state-validation a bit, clean up '...dok'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user