mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-15150 "Quiz Report broken in course without students" also now displaying a message when there are no attempts.
This commit is contained in:
parent
f34488b2e6
commit
aa17ea53c4
@ -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>';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user