Permalink
Browse files

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

…dle into MOODLE_21_STABLE
  • Loading branch information...
2 parents 7e87a3a + f32c32b commit 7d03210e74459568966447bee401e329e0239723 Sam Hemelryk committed Feb 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pluginlib.php
View
@@ -1283,7 +1283,7 @@ public function is_enabled() {
}
if (is_null($enabled)) {
- $enabled = explode(',', $CFG->auth);
+ $enabled = array_flip(explode(',', $CFG->auth));
}
return isset($enabled[$this->name]);
@@ -1321,7 +1321,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]);

0 comments on commit 7d03210

Please sign in to comment.