MDL-31238 remove now unnecessary null to stdClass conversion for plugin settings
This commit is contained in:
+1
-4
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user