From ef2097167ccf924d6d2619f90868c6157eedab81 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 23 Jun 2017 15:29:06 +1200 Subject: [PATCH] Fix bug with userdisplay check. --- renderables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderables.php b/renderables.php index 1131573..3cac546 100644 --- a/renderables.php +++ b/renderables.php @@ -374,7 +374,7 @@ class attendance_user_data implements renderable { foreach ($this->coursesatts as $atid => $ca) { // Check to make sure the user can view this cm. if (!get_fast_modinfo($ca->courseid)->instances['attendance'][$ca->attid]->uservisible) { - unset($this->courseatts[$atid]); + unset($this->coursesatts[$atid]); continue; } $this->statuses[$ca->attid] = attendance_get_statuses($ca->attid);