Browse Source

Fix bug with userdisplay check.

MOODLE_32_STABLE
Dan Marsden 8 years ago
parent
commit
e487adaccc
  1. 2
      renderables.php

2
renderables.php

@ -491,7 +491,7 @@ class attendance_user_data implements renderable {
// Check to make sure the user can view this cm. // Check to make sure the user can view this cm.
$modinfo = get_fast_modinfo($ca->courseid); $modinfo = get_fast_modinfo($ca->courseid);
if (!$modinfo->instances['attendance'][$ca->attid]->uservisible) { if (!$modinfo->instances['attendance'][$ca->attid]->uservisible) {
unset($this->courseatts[$atid]); unset($this->coursesatts[$atid]);
continue; continue;
} else { } else {
$this->coursesatts[$atid]->cmid = $modinfo->instances['attendance'][$ca->attid]->get_course_module_record()->id; $this->coursesatts[$atid]->cmid = $modinfo->instances['attendance'][$ca->attid]->get_course_module_record()->id;

Loading…
Cancel
Save