mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-48362 enrol_cohort: Correct variable naming for course sync
$course->id => $instance->courseid
This commit is contained in:
parent
5aac4a23e5
commit
ebdbc82b82
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user