quiz reports MDL-23161 notify(get_string('nostudentsyet')) breaking downloads.
This commit is contained in:
@@ -178,10 +178,14 @@ class quiz_overview_report extends quiz_default_report {
|
||||
|
||||
$nostudents = false;
|
||||
if (!$students) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsyet'));
|
||||
if (!$table->is_downloading()) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsyet'));
|
||||
}
|
||||
$nostudents = true;
|
||||
}else if ($currentgroup && !$groupstudents) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsingroup'));
|
||||
} else if ($currentgroup && !$groupstudents) {
|
||||
if (!$table->is_downloading()) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsingroup'));
|
||||
}
|
||||
$nostudents = true;
|
||||
}
|
||||
if (!$table->is_downloading()) {
|
||||
|
||||
@@ -149,10 +149,14 @@ class quiz_responses_report extends quiz_default_report {
|
||||
|
||||
$nostudents = false;
|
||||
if (!$students) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsyet'));
|
||||
if (!$table->is_downloading()) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsyet'));
|
||||
}
|
||||
$nostudents = true;
|
||||
}else if ($currentgroup && !$groupstudents) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsingroup'));
|
||||
} else if ($currentgroup && !$groupstudents) {
|
||||
if (!$table->is_downloading()) {
|
||||
echo $OUTPUT->notification(get_string('nostudentsingroup'));
|
||||
}
|
||||
$nostudents = true;
|
||||
}
|
||||
if (!$table->is_downloading()) {
|
||||
|
||||
Reference in New Issue
Block a user