Followup fix for Bug MDL-8617 "Implement groupings & course modules..."

This commit is contained in:
nfreear
2007-02-23 15:15:39 +00:00
parent 83582cd6f6
commit 0424f2e9c4
+3
View File
@@ -166,6 +166,9 @@ function groups_m_get_groups_for_user($cm, $userid) {
elseif (GROUP_ANY_GROUPING == $groupingid) {
return groups_get_groups_for_user($userid, $cm->course);
}
elseif (GROUP_NOT_IN_GROUPING == $groupingid) {
return groups_get_groups_not_in_any_grouping($cm->course);
}
return groups_get_groups_for_user_in_grouping($userid, $groupingid);
}