Skip to content

Commit

Permalink
Added second argument ($cm) to groupmode() calls in
Browse files Browse the repository at this point in the history
_get_available_students function.
  • Loading branch information
rkingdon committed Sep 16, 2004
1 parent 839f245 commit dfeaa00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/dialogue/locallib.php
Expand Up @@ -139,7 +139,7 @@ function dialogue_get_available_students($dialogue) {


$groupid = get_current_group($course->id); $groupid = get_current_group($course->id);
// add current group before list of students if it's the teacher // 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 // show teacher their current group
if ($groupid) { if ($groupid) {
if (!$group = get_record("groups", "id", $groupid)) { if (!$group = get_record("groups", "id", $groupid)) {
Expand All @@ -157,7 +157,7 @@ function dialogue_get_available_students($dialogue) {
// ...exclude self and... // ...exclude self and...
if ($USER->id != $otheruser->id) { if ($USER->id != $otheruser->id) {
// ...if teacher and groups then exclude students not in the current group // ...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)) { if (!ismember($groupid, $otheruser->id)) {
continue; continue;
} }
Expand Down

0 comments on commit dfeaa00

Please sign in to comment.