]> git.mjollnir.org Git - moodle.git/commitdiff
As showing/hiding "Save my answers" button was based in empty($results),
authorstronk7 <stronk7>
Sun, 25 Apr 2004 09:16:19 +0000 (09:16 +0000)
committerstronk7 <stronk7>
Sun, 25 Apr 2004 09:16:19 +0000 (09:16 +0000)
moved $results->attemptbuildsonthelast to $attemptbuildsonthelast.
This was introduced in my latest CVS version, trying to take out
some notices...solved now.

mod/quiz/lib.php

index 26e029b84dc755f77a8c9250e41dda1c29e8729f..46c75fc9f8b748653c89082d5ce8d41af2348bf5 100644 (file)
@@ -1069,9 +1069,9 @@ function quiz_print_quiz_questions($quiz, $results=NULL, $questions=NULL, $shuff
         echo "<br />";
     }
 
-    $results->attemptbuildsonthelast = isset($results->attemptbuildsonthelast) ? $results->attemptbuildsonthelast : NULL;
+    $attemptbuildsonthelast = isset($results->attemptbuildsonthelast) ? $results->attemptbuildsonthelast : NULL;
 
-    if (empty($results) || $results->attemptbuildsonthelast) {
+    if (empty($results) || $attemptbuildsonthelast) {
         if (!empty($quiz->shufflequestions)) {  // Things have been mixed up, so pass the question order
             $shuffleorder = implode(',', $questionorder);
             echo "<input type=\"hidden\" name=\"shuffleorder\" value=\"$shuffleorder\" />\n";