Browse Source

Fixed bug with first access to attendance in each course

MOODLE_23_STABLE
Artem Andreev 14 years ago
parent
commit
cb340f30f4
  1. 4
      locallib.php

4
locallib.php

@ -435,8 +435,10 @@ 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) {
$SESSION->attsessiontype[$cm->course] = $group; $SESSION->attsessiontype[$cm->course] = $group;
} elseif (!array_key_exists('attsessiontype', $SESSION)) { } elseif (!array_key_exists($cm->course, $SESSION->attsessiontype)) {
if (!array_key_exists('attsessiontype', $SESSION)) {
$SESSION->attsessiontype = array(); $SESSION->attsessiontype = array();
}
$SESSION->attsessiontype[$cm->course] = -1; $SESSION->attsessiontype[$cm->course] = -1;
} }

Loading…
Cancel
Save