Skip to content

Commit

Permalink
Merge branch 'MDL-26496' of git://github.com/rwijaya/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 29, 2012
2 parents 62c68ed + dd30ae4 commit c3592ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lesson/pagetypes/multichoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c3592ba

Please sign in to comment.