MDL-23125 fixed variable name collision - credit goes to I\96aki Arenaza, thanks!
authorPetr Skoda <skodak@moodle.org>
Wed, 7 Jul 2010 17:56:24 +0000 (17:56 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 7 Jul 2010 17:56:24 +0000 (17:56 +0000)
lib/enrollib.php

index 7166e5e..44aae7e 100644 (file)
@@ -706,14 +706,14 @@ abstract class enrol_plugin {
      * @return string value
      */
     public function set_config($name, $value) {
-        $name = $this->get_name();
+        $pluginname = $this->get_name();
         $this->load_config();
         if ($value === NULL) {
             unset($this->config->$name);
         } else {
             $this->config->$name = $value;
         }
-        set_config($name, $value, "enrol_$name");
+        set_config($name, $value, "enrol_$pluginname");
     }
 
     /**