Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'wip-mdl-29967-m22' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_22_STABLE
  • Loading branch information...
commit ab04c70d56d8f4024a89a0c80d7a8fbec4223696 2 parents ace2654 + 9c867cf
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pluginlib.php
View
4 lib/pluginlib.php
@@ -1462,7 +1462,7 @@ public function is_enabled() {
}
if (is_null($enabled)) {
- $enabled = explode(',', $CFG->auth);
+ $enabled = array_flip(explode(',', $CFG->auth));
}
return isset($enabled[$this->name]);
@@ -1499,7 +1499,7 @@ public function is_enabled() {
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]);
Please sign in to comment.
Something went wrong with that request. Please try again.