MDL-41002 fix typo causing fatal error on other users page

Credit goes to Bernhard Brandstetter, thanks!
This commit is contained in:
Petr Škoda
2013-08-04 15:01:43 +02:00
parent a9657adb0f
commit 70e746f43e
+1 -1
View File
@@ -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();
}
}
}