check if answer is not empty

This commit is contained in:
Bertrand 2012-06-09 23:24:41 +02:00
parent 267e5d9900
commit 4987aee45e

View File

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