MDL-31238 remove now unnecessary null to stdClass conversion for plugin settings

This commit is contained in:
Petr Skoda
2012-01-21 11:17:18 +01:00
parent 057d39bbc1
commit 68d4c5bc1f
2 changed files with 2 additions and 9 deletions
+1 -4
View File
@@ -1039,10 +1039,7 @@ abstract class enrol_plugin {
protected function load_config() {
if (!isset($this->config)) {
$name = $this->get_name();
if (!$config = get_config("enrol_$name")) {
$config = new stdClass();
}
$this->config = $config;
$this->config = get_config("enrol_$name");
}
}