Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

quiz reports MDL-23161 notify(get_string('nostudentsyet')) breaking d…

…ownloads.
  • Loading branch information...
commit 874a2eaf550a4b4eda57774b45f0250e8251e71d 1 parent 9cb5d53
@timhunt timhunt authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 mod/quiz/report/overview/report.php
View
8 mod/quiz/report/overview/report.php
@@ -103,7 +103,9 @@ function display($quiz, $cm, $course) {
}
$nostudents = false;
if (!$students = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'u.id,1','','','','','',false)) {
- notify(get_string('nostudentsyet'));
+ if (!$download) {
+ notify(get_string('nostudentsyet'));
+ }
$nostudents = true;
$studentslist = 0;
} else {
@@ -118,7 +120,9 @@ function display($quiz, $cm, $course) {
} else {
// all users who can attempt quizzes and who are in the currently selected group
if (!$groupstudents = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'u.id,1','','','',$currentgroup,'',false)) {
- notify(get_string('nostudentsingroup'));
+ if (!$download) {
+ notify(get_string('nostudentsingroup'));
+ }
$nostudents = true;
$groupstudents = array();
}
Please sign in to comment.
Something went wrong with that request. Please try again.