Skip to content
Browse files

Merge branch 'MDL-26496_m22' of git://github.com/rwijaya/moodle into …

…MOODLE_22_STABLE
  • Loading branch information...
2 parents 46ccd8b + c468eab commit cafbb73f5b8773877cd6e077e626d6a931772398 @stronk7 stronk7 committed Feb 29, 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 cafbb73

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