MDL-15712 fixed groups regressions - credit goes to Daniel Servos

This commit is contained in:
skodak
2008-07-19 08:07:51 +00:00
parent cc127f138d
commit 177d5493bb
+2 -2
View File
@@ -544,7 +544,7 @@ function groups_get_course_group($course, $update=false) {
}
// init activegroup array
if (!array_key_exists('activegroup', $SESSION)) {
if (!isset($SESSION->activegroup)) {
$SESSION->activegroup = array();
}
if (!array_key_exists($course->id, $SESSION->activegroup)) {
@@ -620,7 +620,7 @@ function groups_get_activity_group($cm, $update=false) {
}
// init activegroup array
if (!array_key_exists('activegroup', $SESSION)) {
if (!isset($SESSION->activegroup)) {
$SESSION->activegroup = array();
}
if (!array_key_exists($cm->course, $SESSION->activegroup)) {