MDL-29812 partcipiant report - breaks when filtering by user

This commit is contained in:
Dan Poltawski 2011-11-01 17:02:23 +00:00 committed by Aparup Banerjee
parent 5b653c75dd
commit 2d7ad201ac

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);