]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-5601 - restoring a course with a multianswer question sometimes causes an error...
authortjhunt <tjhunt>
Tue, 3 Oct 2006 17:57:16 +0000 (17:57 +0000)
committertjhunt <tjhunt>
Tue, 3 Oct 2006 17:57:16 +0000 (17:57 +0000)
question/type/multianswer/questiontype.php

index 3b841fd004b0969552d967ce670233fd6fc2b03a..b4fc1478cb4b1622b05dcd1a0979ce81cf7b208c 100644 (file)
@@ -535,7 +535,7 @@ class embedded_cloze_qtype extends default_questiontype {
             $wrappedquestionid = $sequence[$seqnum-1];
             // now we can find the question
             if (!$wrappedquestion = get_record('question', 'id', $wrappedquestionid)) {
-                error("Can't find the subquestion $wrappedquestionid that is used as part $seqnum in cloze question $state->question");
+                notify("Can't find the subquestion $wrappedquestionid that is used as part $seqnum in cloze question $state->question");
             }
             // For multichoice question we need to recode the answer
             if ($answer and $wrappedquestion->qtype == 'multichoice') {