Merged from stable branch

This commit is contained in:
moodler 2004-07-03 10:28:47 +00:00
parent 85a93d9a33
commit 08cfe9806c

View File

@ -416,7 +416,7 @@ function assignment_count_real_submissions($assignment, $groupid=0) {
global $CFG;
if ($groupid) { /// How many in a particular group?
return count_records_sql("SELECT COUNT(*)
return count_records_sql("SELECT COUNT(DISTINCT g.userid, g.groupid)
FROM {$CFG->prefix}assignment_submissions a,
{$CFG->prefix}groups_members g
WHERE a.assignment = $assignment->id