MDL-26496 Lesson Module: removed warning when no answer is selected from single choice question

This commit is contained in:
Eduardo Pinto
2012-02-23 14:05:07 +08:00
committed by Rossiani Wijaya
parent ad5202771a
commit c468eab4f0
+1 -1
View File
@@ -253,7 +253,7 @@ class lesson_page_type_multichoice extends lesson_page {
}
} else {
// only one answer allowed
if (empty($data->answerid) && !is_int($data->answerid)) {
if (!isset($data->answerid) || (empty($data->answerid) && !is_int($data->answerid))) {
$result->noanswer = true;
return $result;
}