check if answer is not empty
This commit is contained in:
parent
267e5d9900
commit
4987aee45e
@ -44,7 +44,7 @@ if (isset ($_POST['send']))
|
||||
$question = $value;
|
||||
else if ($key == "course")
|
||||
$course = $value;
|
||||
else if (preg_match("#^answer#", $key))
|
||||
else if (preg_match("#^answer#", $key) && $key != "")
|
||||
$answers[] = $value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user