mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
make sure contest is not empty, otherwise set NULL
This commit is contained in:
@@ -95,7 +95,7 @@ class Logbook_model extends CI_Model {
|
||||
}
|
||||
|
||||
if($this->input->post('contestname')) {
|
||||
$contestid = $this->input->post('contestname');
|
||||
$contestid = $this->input->post('contestname') == "" ? NULL : $this->input->post('contestname');
|
||||
} else {
|
||||
$contestid = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user