MDL-29812 partcipiant report - breaks when filtering by user

This commit is contained in:
Dan Poltawski
2011-11-09 11:17:40 +08:00
committed by Aparup Banerjee
parent 8935486dc4
commit 52a29f890e
+1
View File
@@ -223,6 +223,7 @@
$countsql = "SELECT COUNT(DISTINCT(ra.userid))
FROM {role_assignments} ra
JOIN {user} u ON u.id = ra.userid
WHERE ra.contextid $relatedcontexts AND ra.roleid = :roleid";
$totalcount = $DB->count_records_sql($countsql, $params);