From 158e545945fbca3604735b6112f71f0144498fb7 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 3 Oct 2006 17:57:16 +0000 Subject: [PATCH] MDL-5601 - restoring a course with a multianswer question sometimes causes an error() for a non-fatal contition. Change it to a notify, and everything seems to work. I don't really understand why, but this change does not make matters worse, so I am committing it. Thanks to Joseph Rezeau. Merged from MOODLE_16_STABLE. --- question/type/multianswer/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index 3b841fd004b..b4fc1478cb4 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -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') {