Permalink
Browse files

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

…rom single choice question
  • Loading branch information...
efgpinto authored and Rossiani Wijaya committed Feb 23, 2012
1 parent ad52027 commit c468eab4f04767009a608ed081dd4d4ea8a4bb02
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.