|
@ -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; |
|
|