Merge branch 'wip-mdl-29967' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
+2
-2
@@ -1461,7 +1461,7 @@ class plugintype_auth extends plugintype_base implements plugin_information {
|
||||
}
|
||||
|
||||
if (is_null($enabled)) {
|
||||
$enabled = explode(',', $CFG->auth);
|
||||
$enabled = array_flip(explode(',', $CFG->auth));
|
||||
}
|
||||
|
||||
return isset($enabled[$this->name]);
|
||||
@@ -1498,7 +1498,7 @@ class plugintype_enrol extends plugintype_base implements plugin_information {
|
||||
static $enabled = null;
|
||||
|
||||
if (is_null($enabled)) {
|
||||
$enabled = explode(',', $CFG->enrol_plugins_enabled);
|
||||
$enabled = array_flip(explode(',', $CFG->enrol_plugins_enabled));
|
||||
}
|
||||
|
||||
return isset($enabled[$this->name]);
|
||||
|
||||
Reference in New Issue
Block a user