@@ -81,7 +81,8 @@ class SiteSettingEventSubscriber implements EventSubscriberInterface | |||
$this->em->persist($entitySetting); | |||
} else { | |||
if ($entitySetting->getValue() === null | |||
$methodGetValue = 'get' . ucfirst($setting['field']); | |||
if ($entitySetting->$methodGetValue() === null | |||
&& isset($setting['default']) | |||
&& $setting['default'] !== null) { | |||
$methodSetValue = 'set' . ucfirst($setting['field']); |