Skip to content
Browse files

MDL-34870 enrol_cohort - don't need to do useless work

  • Loading branch information...
1 parent fb4e694 commit a4241511ed3c186aa3866a26b43a13e5406a0247 @danpoltawski danpoltawski committed Aug 22, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 enrol/cohort/lib.php
View
9 enrol/cohort/lib.php
@@ -121,14 +121,7 @@ public function cron() {
* @return void
*/
public function course_updated($inserted, $course, $data) {
- global $CFG;
-
- if (!$inserted) {
- // Let's not sync cohorts anytime a course is updated...
- } else {
- // cohorts are never inserted automatically
- }
-
+ // It turns out there is no need for cohorts to deal with this hook, see MDL-34870.
}
/**

0 comments on commit a424151

Please sign in to comment.
Something went wrong with that request. Please try again.