]> git.mjollnir.org Git - moodle.git/commitdiff
Take our some notices...
authorstronk7 <stronk7>
Sun, 25 Apr 2004 08:43:42 +0000 (08:43 +0000)
committerstronk7 <stronk7>
Sun, 25 Apr 2004 08:43:42 +0000 (08:43 +0000)
mod/quiz/lib.php

index 29132a61514ff72637e4530908133f09739a0308..26e029b84dc755f77a8c9250e41dda1c29e8729f 100644 (file)
@@ -523,6 +523,7 @@ function quiz_print_question($number, $question, $grade, $quizid,
 /// Prints a quiz question, any format
 /// $question is provided as an object
 
+    $question->questiontextformat = isset($question->questiontextformat) ? $question->questiontextformat : NULL;
 
     if ($question->qtype == DESCRIPTION) {  // Special case question - has no answers etc
         echo '<p align="center">';
@@ -1068,6 +1069,8 @@ function quiz_print_quiz_questions($quiz, $results=NULL, $questions=NULL, $shuff
         echo "<br />";
     }
 
+    $results->attemptbuildsonthelast = isset($results->attemptbuildsonthelast) ? $results->attemptbuildsonthelast : NULL;
+
     if (empty($results) || $results->attemptbuildsonthelast) {
         if (!empty($quiz->shufflequestions)) {  // Things have been mixed up, so pass the question order
             $shuffleorder = implode(',', $questionorder);