From 637eaf03fb82d7bea70b4e5131972e1dd4b6b65b Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 28 Nov 2024 22:28:22 +0700 Subject: [PATCH] [ticket/17445] Adjust code logic PHPBB-17445 --- phpBB/phpbb/notification/method/webpush.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/phpbb/notification/method/webpush.php b/phpBB/phpbb/notification/method/webpush.php index 56d280deec..7110460821 100644 --- a/phpBB/phpbb/notification/method/webpush.php +++ b/phpBB/phpbb/notification/method/webpush.php @@ -94,7 +94,8 @@ class webpush extends messenger_base implements extended_method_interface public function is_available(type_interface $notification_type = null): bool { return $this->config['webpush_enable'] - && !empty($this->config['webpush_vapid_public']) && !empty($this->config['webpush_vapid_private']); + && $this->config['webpush_vapid_public'] + && $this->config['webpush_vapid_private']; } /**