From ac697980a1c6b09c7137ce55640cff06a1e6d3e1 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 23 Jun 2017 15:27:17 +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 dc3ced6..abeb212 100644 --- a/renderables.php +++ b/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;