Permalink
Browse files

Added second argument ($cm) to groupmode() calls in

_get_available_students function.
  • Loading branch information...
1 parent 839f245 commit dfeaa008d3156419b2900c92bd6e41ba98e77b46 rkingdon committed Sep 16, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/dialogue/locallib.php
@@ -139,7 +139,7 @@ function dialogue_get_available_students($dialogue) {
$groupid = get_current_group($course->id);
// add current group before list of students if it's the teacher
- if (isteacher($course->id) and groupmode($course)) {
+ if (isteacher($course->id) and groupmode($course, $cm)) {
// show teacher their current group
if ($groupid) {
if (!$group = get_record("groups", "id", $groupid)) {
@@ -157,7 +157,7 @@ function dialogue_get_available_students($dialogue) {
// ...exclude self and...
if ($USER->id != $otheruser->id) {
// ...if teacher and groups then exclude students not in the current group
- if (isteacher($course->id) and groupmode($course) and $groupid) {
+ if (isteacher($course->id) and groupmode($course, $cm) and $groupid) {
if (!ismember($groupid, $otheruser->id)) {
continue;
}

0 comments on commit dfeaa00

Please sign in to comment.