From ebdbc82b82b8b828530700159a17a77c41905c9e Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 3 Mar 2016 07:55:07 +0800 Subject: [PATCH] MDL-48362 enrol_cohort: Correct variable naming for course sync $course->id => $instance->courseid --- enrol/cohort/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/cohort/lib.php b/enrol/cohort/lib.php index 93bdf44732f..179671e122c 100644 --- a/enrol/cohort/lib.php +++ b/enrol/cohort/lib.php @@ -155,7 +155,7 @@ class enrol_cohort_plugin extends enrol_plugin { require_once("$CFG->dirroot/enrol/cohort/locallib.php"); $trace = new null_progress_trace(); - enrol_cohort_sync($trace, $course->id); + enrol_cohort_sync($trace, $instance->courseid); $trace->finished(); return $result;