From 7956944f7cb1e46f537d1ccb5fbbd19e77b60250 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 24 Jan 2008 17:13:30 +0000 Subject: [PATCH] MDL-12933 - Bug in mod/quiz/lib.php break MyMoodle - Fix thanks to Eric Merrill. --- mod/quiz/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 6ed5427231..b2fe44fffb 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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 .= '
' . quiz_num_attempt_summary($quiz, true) . '
'; + $str .= '
' . quiz_num_attempt_summary($quiz, $quiz, true) . '
'; } 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))) { -- 2.39.5