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

This commit is contained in:
Eloy Lafuente (stronk7) 2012-02-29 02:04:59 +01:00
commit c3592ba7fa

View File

@ -253,7 +253,7 @@ class lesson_page_type_multichoice extends lesson_page {
}
} 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;
}