make sure contest is not empty, otherwise set NULL

This commit is contained in:
HB9HIL
2024-07-13 14:35:07 +02:00
parent 05923c7899
commit 0342cd89e5

View File

@@ -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;
}