]> git.mjollnir.org Git - moodle.git/commitdiff
Question object not always initialised. Bug #5369
authorthepurpleblob <thepurpleblob>
Mon, 1 May 2006 07:35:33 +0000 (07:35 +0000)
committerthepurpleblob <thepurpleblob>
Mon, 1 May 2006 07:35:33 +0000 (07:35 +0000)
question/format/aiken/format.php

index d6657adc3ad217362b30d0cbb73c8a9d9746fbce..3684ec389885e202b6f7f1b6f67d0da2860dbed0 100644 (file)
@@ -70,7 +70,7 @@ class qformat_aiken extends qformat_default {
                     $question->fraction[$rightans] = 1;
                     $questions[] = $question;
                     //clear array for next question set
-                    $question = NULL;
+                    $question = $this->defaultquestion();
                     continue;
                 } else {
                     //Must be the first line since no leader