]> git.mjollnir.org Git - moodle.git/commitdiff
Minor fixes
authormoodler <moodler>
Fri, 11 Apr 2003 14:44:12 +0000 (14:44 +0000)
committermoodler <moodler>
Fri, 11 Apr 2003 14:44:12 +0000 (14:44 +0000)
mod/quiz/lib.php
mod/quiz/report.php

index 3dfe6ff9443226484ff48e1480fea81aef112b64..4409ab4427da58316b94af670999ce95342effe3 100644 (file)
@@ -496,7 +496,7 @@ function quiz_print_question($number, $question, $grade, $courseid,
            echo "<TD $truecorrect>";
            echo "<INPUT $truechecked TYPE=RADIO NAME=\"q$realquestion->id\" VALUE=\"$true->id\">$true->answer";
            echo "</TD><TD $falsecorrect>";
-           echo "<INPUT $falsechecked TYPE=RADIO NAME=\"q$realquestion->id\" VALUE=\"$false->id\">$false->answer</P>";
+           echo "<INPUT $falsechecked TYPE=RADIO NAME=\"q$realquestion->id\" VALUE=\"$false->id\">$false->answer";
            echo "</TD></TR></TABLE><BR CLEAR=ALL>";
            if ($feedback) {
                quiz_print_comment("<P ALIGN=right>$feedback[$feedbackid]</P>");
index e80bf7b357bb8db6e66b4da783bcbfa517d59653..e56da1be8cf1d91fd581ef9152e47d27d36d0991 100644 (file)
@@ -99,7 +99,7 @@
             error("Could not reconstruct quiz results for attempt $attempt->id!");
         }
 
-        quiz_remove_unwanted_questions(&$questions, $quiz);
+        quiz_remove_unwanted_questions($questions, $quiz);
 
         if (!$result = quiz_grade_attempt_results($quiz, $questions)) {
             error("Could not re-grade this quiz attempt!");
             if (! $questions = quiz_get_attempt_responses($attempt, $quiz)) {
                 error("Could not reconstruct quiz results for attempt $attempt->id!");
             }
-            quiz_remove_unwanted_questions(&$questions, $quiz);
+            quiz_remove_unwanted_questions($questions, $quiz);
 
             if (!$result = quiz_grade_attempt_results($quiz, $questions)) {
                 error("Could not re-grade this quiz attempt!");