From 11c23255479c2453d091e46b86690115feaac5ae Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 21 Aug 2015 11:17:20 +1200 Subject: [PATCH] Fixes #141 fatal error caused by new groups tidy --- take.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/take.php b/take.php index 5a710f2..0858ce4 100644 --- a/take.php +++ b/take.php @@ -50,7 +50,7 @@ $pageparams->group = groups_get_activity_group($cm, true); $pageparams->init($course->id); $att = new attendance($att, $cm, $course, $PAGE->context, $pageparams); -$allowedgroups = groups_get_activity_allowed_groups($this->cm); +$allowedgroups = groups_get_activity_allowed_groups($cm); if (!empty($pageparams->grouptype) && !array_key_exists($groupid, $allowedgroups)) { $group = groups_get_group($pageparams->grouptype); throw new moodle_exception('cannottakeforgroup', 'attendance', '', $group->name);