From 70e746f43e772d243b3437ff2f5a581899c9d7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Sun, 4 Aug 2013 15:00:53 +0200 Subject: [PATCH] MDL-41002 fix typo causing fatal error on other users page Credit goes to Bernhard Brandstetter, thanks! --- enrol/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } }