diff --git a/mod/quiz/format/multianswer/format.php b/mod/quiz/format/multianswer/format.php index 5c32fd9a0a8..fdbdf95e1b6 100644 --- a/mod/quiz/format/multianswer/format.php +++ b/mod/quiz/format/multianswer/format.php @@ -25,9 +25,10 @@ class quiz_format_multianswer extends quiz_default_format { $thequestion= quiz_qtype_multianswer_extract_question (addslashes(implode('',$lines))); $thequestion->qtype = MULTIANSWER; + $thequestion->course = $this->course; if (!empty($thequestion)) { - $thequestion->name = $lines[0]; + $thequestion->name = addslashes($lines[0]); $questions[] = $thequestion; }