|
@ -434,11 +434,12 @@ function print_filter_controls($url, $id, $sort=NULL, $printselector=WITHOUT_SEL |
|
|
|
|
|
|
|
|
$group = optional_param('group', -2, PARAM_INT); |
|
|
$group = optional_param('group', -2, PARAM_INT); |
|
|
if ($group > -2) { |
|
|
if ($group > -2) { |
|
|
if (!array_key_exists('attsessiontype', $SESSION)) { |
|
|
|
|
|
$SESSION->attsessiontype = array(); |
|
|
|
|
|
} |
|
|
|
|
|
$SESSION->attsessiontype[$cm->course] = $group; |
|
|
$SESSION->attsessiontype[$cm->course] = $group; |
|
|
|
|
|
} elseif (!array_key_exists('attsessiontype', $SESSION)) { |
|
|
|
|
|
$SESSION->attsessiontype = array(); |
|
|
|
|
|
$SESSION->attsessiontype[$cm->course] = -1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ($group == -1) { |
|
|
if ($group == -1) { |
|
|
$currentgroup = $group; |
|
|
$currentgroup = $group; |
|
|
unset($SESSION->activegroup[$cm->course][VISIBLEGROUPS][$cm->groupingid]); |
|
|
unset($SESSION->activegroup[$cm->course][VISIBLEGROUPS][$cm->groupingid]); |
|
|