diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 0ecebf935..9eb684ed7 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -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; }