MDL-23280 fix typo in var name

This commit is contained in:
Dan Marsden 2010-07-15 08:21:41 +00:00
parent 201d293d72
commit 5138bae0d7

View file

@ -624,8 +624,8 @@ function groups_get_course_group($course, $update=false) {
$SESSION->activegroup[$course->id][$groupmode][0] = 0; // all groups by default if user has accessallgroups $SESSION->activegroup[$course->id][$groupmode][0] = 0; // all groups by default if user has accessallgroups
} else if ($usergroups = groups_get_all_groups($course->id, $USER->id, $course->defaultgroupingid)) { } else if ($usergroups = groups_get_all_groups($course->id, $USER->id, $course->defaultgroupingid)) {
$fistgroup = reset($usergroups); $firstgroup = reset($usergroups);
$SESSION->activegroup[$course->id][$groupmode][0] = $fistgroup->id; $SESSION->activegroup[$course->id][$groupmode][0] = $firstgroup->id;
} else { } else {
// this happen when user not assigned into group in SEPARATEGROUPS mode or groups do not exist yet // this happen when user not assigned into group in SEPARATEGROUPS mode or groups do not exist yet
@ -698,8 +698,8 @@ function groups_get_activity_group($cm, $update=false) {
$SESSION->activegroup[$cm->course][$groupmode][$cm->groupingid] = 0; // all groups by default if user has accessallgroups $SESSION->activegroup[$cm->course][$groupmode][$cm->groupingid] = 0; // all groups by default if user has accessallgroups
} else if ($usergroups = groups_get_all_groups($cm->course, $USER->id, $cm->groupingid)) { } else if ($usergroups = groups_get_all_groups($cm->course, $USER->id, $cm->groupingid)) {
$fistgroup = reset($usergroups); $firstgroup = reset($usergroups);
$SESSION->activegroup[$cm->course][$groupmode][$cm->groupingid] = $fistgroup->id; $SESSION->activegroup[$cm->course][$groupmode][$cm->groupingid] = $firstgroup->id;
} else { } else {
// this happen when user not assigned into group in SEPARATEGROUPS mode or groups do not exist yet // this happen when user not assigned into group in SEPARATEGROUPS mode or groups do not exist yet