Permalink
Browse files

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

…rom single choice question
  • Loading branch information...
1 parent e0d5a17 commit 234f870c888a3889d2126b192d4f6c120208c0b0 @efgpinto efgpinto committed with rwijaya Feb 23, 2012
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 234f870

Please sign in to comment.