mirror of
https://github.com/moodle/moodle.git
synced 2025-02-21 18:08:02 +01:00
Merged from MOODLE_15_STABLE: Avoid a warning when displaying multichoice quiz questions
This commit is contained in:
parent
129a658ad0
commit
5838e5b21f
@ -295,7 +295,7 @@ class quiz_multichoice_qtype extends quiz_default_questiontype {
|
||||
// the single selection case or has a positive score in the multiple
|
||||
// selection case
|
||||
if ($options->readonly && $options->correct_responses &&
|
||||
in_array($aid, $correctanswers)) {
|
||||
is_array($correctanswers) && in_array($aid, $correctanswers)) {
|
||||
echo '<td valign="top" class="highlight"><label for="'.$id.'">'.
|
||||
format_text("$qnumchar. $answer->answer", FORMAT_MOODLE ,
|
||||
$formatoptions) . '</label></td>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user