From 6353a60ed31af154427f3424cd0ae9a9f5e461fd Mon Sep 17 00:00:00 2001 From: Adam Olley Date: Tue, 14 Aug 2012 13:18:21 +0930 Subject: [PATCH] MDL-34870: Prevent cohort enrol sync when updating course record --- enrol/cohort/lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/enrol/cohort/lib.php b/enrol/cohort/lib.php index 20098671f7133..49d8fcb3a3474 100644 --- a/enrol/cohort/lib.php +++ b/enrol/cohort/lib.php @@ -124,9 +124,7 @@ public function course_updated($inserted, $course, $data) { global $CFG; if (!$inserted) { - // sync cohort enrols - require_once("$CFG->dirroot/enrol/cohort/locallib.php"); - enrol_cohort_sync($course->id); + // Let's not sync cohorts anytime a course is updated... } else { // cohorts are never inserted automatically }