Skip to content
Browse files

MDL-26496 Lesson Module: removed warning when no answer is selected f…

…rom single choice question
  • Loading branch information...
1 parent ad52027 commit c468eab4f04767009a608ed081dd4d4ea8a4bb02 @efgpinto efgpinto committed with rwijaya Feb 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/pagetypes/multichoice.php
View
2 mod/lesson/pagetypes/multichoice.php
@@ -253,7 +253,7 @@ public function check_answer() {
}
} 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;
}

0 comments on commit c468eab

Please sign in to comment.
Something went wrong with that request. Please try again.