force the config to be an array if empty
...or we get a bunch of "invalid argument" to the foreach statement.
This commit is contained in:
parent
8a72b24ea2
commit
a9423265fd
|
@ -75,7 +75,7 @@ class QvitterPlugin extends Plugin {
|
|||
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · */
|
||||
|
||||
// config.php settings override the settings in this file
|
||||
$configphpsettings = common_config('site','qvitter');
|
||||
$configphpsettings = common_config('site','qvitter') ?: array();
|
||||
foreach($configphpsettings as $configphpsetting=>$value) {
|
||||
$settings[$configphpsetting] = $value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user