check if answer is not empty
This commit is contained in:
parent
267e5d9900
commit
4987aee45e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ if (isset ($_POST['send']))
|
||||||
$question = $value;
|
$question = $value;
|
||||||
else if ($key == "course")
|
else if ($key == "course")
|
||||||
$course = $value;
|
$course = $value;
|
||||||
else if (preg_match("#^answer#", $key))
|
else if (preg_match("#^answer#", $key) && $key != "")
|
||||||
$answers[] = $value;
|
$answers[] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue