From 98a38a3994ca2961e753893365759e3f3b828912 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 23 Jun 2010 19:59:51 +0000 Subject: [PATCH] quiz reports: Fix debug warning. --- mod/quiz/report/overview/report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php index 50a0cd609ed83..9e419de66d7c8 100644 --- a/mod/quiz/report/overview/report.php +++ b/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();