mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-26496' of git://github.com/rwijaya/moodle
This commit is contained in:
commit
c3592ba7fa
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user