Add an integration test for fetch() in settings controller [MAILPOET-1483]

This commit is contained in:
wxa
2019-04-01 21:43:35 +03:00
committed by M. Shull
parent 3a34d28daa
commit 26cbd79535
2 changed files with 10 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class SettingsController {
private function getDefaultValue($keys) {
$default = $this->getAllDefaults();
foreach ($keys as $key) {
if (is_array($default) && array_key_exists($key, $default)) {
if (array_key_exists($key, $default)) {
$default = $default[$key];
} else {
return null;