]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12933 - Bug in mod/quiz/lib.php break MyMoodle - Fix thanks to Eric Merrill.
authortjhunt <tjhunt>
Thu, 24 Jan 2008 17:13:30 +0000 (17:13 +0000)
committertjhunt <tjhunt>
Thu, 24 Jan 2008 17:13:30 +0000 (17:13 +0000)
mod/quiz/lib.php

index 6ed54272315e5e657e3f6a23eae0a2dbe04fbdc6..b2fe44fffbee3e7f821f31d0765b5bdf34a0049c 100644 (file)
@@ -1064,7 +1064,7 @@ function quiz_print_overview($courses, &$htmlarray) {
             /// For teacher-like people, show a summary of the number of student attempts.
                 // The $quiz objects returned by get_all_instances_in_course have the necessary $cm 
                 // fields set to make the following call work.
-                $str .= '<div class="info">' . quiz_num_attempt_summary($quiz, true) . '</div>';
+                $str .= '<div class="info">' . quiz_num_attempt_summary($quiz, $quiz, true) . '</div>';
             } else if (has_capability('mod/quiz:attempt', $context)){ // Student
             /// For student-like people, tell them how many attempts they have made.
                 if (isset($USER->id) && ($attempts = quiz_get_user_attempts($quiz->id, $USER->id))) {