From c18490b89b9172bed449b5de0a896d40278ae608 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 25 Apr 2004 08:43:42 +0000 Subject: [PATCH] Take our some notices... --- mod/quiz/lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 29132a6151..26e029b84d 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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 '

'; @@ -1068,6 +1069,8 @@ function quiz_print_quiz_questions($quiz, $results=NULL, $questions=NULL, $shuff echo "
"; } + $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); -- 2.39.5