MDL-15150 "Quiz Report broken in course without students" also now displaying a message when there are no attempts.

This commit is contained in:
jamiesensei 2008-06-06 14:59:24 +00:00
parent f34488b2e6
commit aa17ea53c4

View File

@ -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 '<div class="quizattemptcounts">' . $strattemptnum . '</div>';
}
}