From: jamiesensei Date: Fri, 6 Jun 2008 14:59:24 +0000 (+0000) Subject: MDL-15150 "Quiz Report broken in course without students" also now displaying a messa... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa17ea53c4dc880398d0ceb58432c3799008bad1;p=moodle.git MDL-15150 "Quiz Report broken in course without students" also now displaying a message when there are no attempts. --- diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php index 24d4ead6cf..ad959498d2 100644 --- a/mod/quiz/report/overview/report.php +++ b/mod/quiz/report/overview/report.php @@ -135,7 +135,7 @@ class quiz_report extends quiz_default_report { // Print information on the number of existing attempts if (!$table->is_downloading()) { //do not print notices when downloading - if ($strattemptnum = quiz_num_attempt_summary($quiz, $cm, false, $currentgroup)) { + if ($strattemptnum = quiz_num_attempt_summary($quiz, $cm, true, $currentgroup)) { echo '
' . $strattemptnum . '
'; } }