Suppress some 'missing course object' messages, and fix bug #3899

This commit is contained in:
thepurpleblob
2005-08-26 11:58:34 +00:00
parent 55fdf029ab
commit 26996407cb
+2 -1
View File
@@ -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;
}