Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-mdl-29967' of git://github.com/rajeshtaneja/moodle

  • Loading branch information...
commit e76eba8111c59cf7180236c8eca6fc5f019daa13 2 parents 5f5ee19 + d5d181f
@samhemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pluginlib.php
View
4 lib/pluginlib.php
@@ -1461,7 +1461,7 @@ public function is_enabled() {
}
if (is_null($enabled)) {
- $enabled = explode(',', $CFG->auth);
+ $enabled = array_flip(explode(',', $CFG->auth));
}
return isset($enabled[$this->name]);
@@ -1498,7 +1498,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.