From 6821dd48b24c2ba15a4868e588dda34655054c79 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Mon, 20 Jan 2025 13:03:26 +0100 Subject: [PATCH] Fix value if missing option --- src/Settings/SettingsModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings/SettingsModule.php b/src/Settings/SettingsModule.php index 61ecb663..bd4bdbbf 100644 --- a/src/Settings/SettingsModule.php +++ b/src/Settings/SettingsModule.php @@ -78,7 +78,7 @@ public function services(): array return $settingsHelper->isTestModeEnabled(); }, 'settings.IsDebugEnabled' => static function (): bool { - $debugEnabled = get_option('mollie-payments-for-woocommerce_debug', true); + $debugEnabled = get_option('mollie-payments-for-woocommerce_debug', 'yes'); return $debugEnabled === 'yes'; }, 'settings.advanced_default_options' => static function (ContainerInterface $container) {