mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-41002 fix typo causing fatal error on other users page
Credit goes to Bernhard Brandstetter, thanks!
This commit is contained in:
parent
a31e811563
commit
529342bb9f
1 changed files with 1 additions and 1 deletions
|
@ -960,7 +960,7 @@ class course_enrolment_manager {
|
||||||
if (strpos($userrole->component, 'enrol_') === 0) {
|
if (strpos($userrole->component, 'enrol_') === 0) {
|
||||||
$plugin = substr($userrole->component, 6);
|
$plugin = substr($userrole->component, 6);
|
||||||
if (isset($plugins[$plugin])) {
|
if (isset($plugins[$plugin])) {
|
||||||
$changeable = !$plugin[$plugin]->roles_protected();
|
$changeable = !$plugins[$plugin]->roles_protected();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue