From eab675b17db3a1f764012b036ac72ae746f0d668 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Thu, 4 Jul 2024 09:47:10 +0200 Subject: [PATCH] NTR: fix settings --- src/Service/SettingsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/SettingsService.php b/src/Service/SettingsService.php index daf499775..040972781 100644 --- a/src/Service/SettingsService.php +++ b/src/Service/SettingsService.php @@ -86,7 +86,7 @@ public function getSettings(?string $salesChannelId = null): MollieSettingStruct /** @var array $coreSettings */ $coreSettings = $this->systemConfigService->get(self::SYSTEM_CORE_LOGIN_REGISTRATION_CONFIG_DOMAIN, $salesChannelId); - $structData[self::PHONE_NUMBER_FIELD_REQUIRED] = $coreSettings[self::PHONE_NUMBER_FIELD_REQUIRED]; + $structData[self::PHONE_NUMBER_FIELD_REQUIRED] = $coreSettings[self::PHONE_NUMBER_FIELD_REQUIRED] ?? false; return (new MollieSettingStruct())->assign($structData); }