Skip to content

Commit

Permalink
quiz reports: Fix debug warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jun 23, 2010
1 parent 0402d10 commit 98a38a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/report/overview/report.php
Expand Up @@ -104,7 +104,7 @@ function display($quiz, $cm, $course) {
}
}
$nostudents = false;
if (!$students = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'id,1','','','','','',false)){
if (!$students = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'u.id,1','','','','','',false)){
notify(get_string('nostudentsyet'));
$nostudents = true;
$studentslist = '';
Expand All @@ -119,7 +119,7 @@ function display($quiz, $cm, $course) {
$allowedlist = $studentslist;
} 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'),'id,1','','','',$currentgroup,'',false)){
if (!$groupstudents = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'u.id,1','','','',$currentgroup,'',false)){
notify(get_string('nostudentsingroup'));
$nostudents = true;
$groupstudents = array();
Expand Down

0 comments on commit 98a38a3

Please sign in to comment.