From 529342bb9f2e72693d3607b6f0ab58e12f18a7b5 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 29f6eeb232c65..17466978879b4 100644 --- a/enrol/locallib.php +++ b/enrol/locallib.php @@ -960,7 +960,7 @@ public function get_other_users_for_display(core_enrol_renderer $renderer, moodl 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(); } } }