MDL-31238 always return object for plugin settings from get_config()
This prevents multiple creations of objects from NULL which is note a warnings in php54
This commit is contained in:
+1
-1
@@ -1316,7 +1316,7 @@ function get_config($plugin, $name = NULL) {
|
||||
if ($localcfg) {
|
||||
return (object)$localcfg;
|
||||
} else {
|
||||
return null;
|
||||
return new stdClass();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user