mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-26496 Lesson Module: removed warning when no answer is selected from single choice question
This commit is contained in:
parent
0dde394db5
commit
dd30ae41d0
@ -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