As showing/hiding "Save my answers" button was based in empty($results),

moved $results->attemptbuildsonthelast to $attemptbuildsonthelast.
This was introduced in my latest CVS version, trying to take out
some notices...solved now.
This commit is contained in:
stronk7
2004-04-25 09:16:19 +00:00
parent c18490b89b
commit ff4c50a9a2
+2 -2
View 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";