Browse Source

Fix bug with userdisplay check.

MOODLE_34_STABLE
Dan Marsden 8 years ago
parent
commit
63c43c6721
  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.
$modinfo = get_fast_modinfo($ca->courseid);
if (!$modinfo->instances['attendance'][$ca->attid]->uservisible) {
unset($this->courseatts[$atid]);
unset($this->coursesatts[$atid]);
continue;
} else {
$this->coursesatts[$atid]->cmid = $modinfo->instances['attendance'][$ca->attid]->get_course_module_record()->id;

Loading…
Cancel
Save