From fbeae9b0ed5e30dee1dbdf0a7fe3dec2bd9669ab Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 17 Feb 2025 20:17:51 +0400 Subject: [PATCH] Check if mapped value is not null before returning true --- modules/ppcp-wc-gateway/src/Settings/Settings.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Settings/Settings.php b/modules/ppcp-wc-gateway/src/Settings/Settings.php index 9340357a6..0e71dd3b8 100644 --- a/modules/ppcp-wc-gateway/src/Settings/Settings.php +++ b/modules/ppcp-wc-gateway/src/Settings/Settings.php @@ -120,7 +120,10 @@ class Settings implements ContainerInterface { * @return bool */ public function has( string $id ) { - if ( $this->settings_map_helper->has_mapped_key( $id ) ) { + if ( + $this->settings_map_helper->has_mapped_key( $id ) + && ! is_null( $this->settings_map_helper->mapped_value( $id ) ) + ) { return true; }