diff --git a/enrol/locallib.php b/enrol/locallib.php index a2039da679e..7e22d24e259 100644 --- a/enrol/locallib.php +++ b/enrol/locallib.php @@ -913,7 +913,7 @@ class course_enrolment_manager { if (strpos($userrole->component, 'enrol_') === 0) { $plugin = substr($userrole->component, 6); if (isset($plugins[$plugin])) { - $changeable = !$plugin[$plugin]->roles_protected(); + $changeable = !$plugins[$plugin]->roles_protected(); } } }