Browse files

MDL-25536 fixed incorrect reading of plugin options in imsenterprise …

…enrol plugin
  • Loading branch information...
1 parent 83da094 commit 365bf67699e9285c9c59b77d7bd67143f1a6b583 @skodak skodak committed Dec 6, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 enrol/imsenterprise/lib.php
View
3 enrol/imsenterprise/lib.php
@@ -748,8 +748,7 @@ function load_role_mappings() {
$this->rolemappings = array();
foreach($imsroles as $imsrolenum=>$imsrolename) {
- $this->rolemappings[$imsrolenum] = $this->rolemappings[$imsrolename]
- = $DB->get_field('config_plugins', 'value', array('name'=>'imsrolemap' . $imsrolenum));
+ $this->rolemappings[$imsrolenum] = $this->rolemappings[$imsrolename] = $this->get_config('imsrolemap' . $imsrolenum);
}
}

0 comments on commit 365bf67

Please sign in to comment.