Permalink
Browse files

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

  • Loading branch information...
1 parent 8926008 commit 6ab7e3a3d58adfc01e4c8b950d38cc75ccaa9d2c @danpoltawski danpoltawski committed Aug 22, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 enrol/cohort/lib.php
View
@@ -126,14 +126,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 6ab7e3a

Please sign in to comment.