Permalink
Browse files

quiz reports: Fix debug warning.

  • Loading branch information...
1 parent 0402d10 commit 98a38a3994ca2961e753893365759e3f3b828912 @timhunt timhunt committed Jun 23, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/report/overview/report.php
@@ -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 = '';
@@ -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();

0 comments on commit 98a38a3

Please sign in to comment.