From 91f82f386f4d8729ece8de22c16d971cf9695d53 Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 28 Nov 2024 13:05:01 +0700 Subject: [PATCH] [ticket/17445] Don't require email templates presence for webpush notifications PHPBB-17445 --- phpBB/phpbb/notification/method/webpush.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/notification/method/webpush.php b/phpBB/phpbb/notification/method/webpush.php index 9d19cb2200..56d280deec 100644 --- a/phpBB/phpbb/notification/method/webpush.php +++ b/phpBB/phpbb/notification/method/webpush.php @@ -93,7 +93,7 @@ class webpush extends messenger_base implements extended_method_interface */ public function is_available(type_interface $notification_type = null): bool { - return parent::is_available($notification_type) && $this->config['webpush_enable'] + return $this->config['webpush_enable'] && !empty($this->config['webpush_vapid_public']) && !empty($this->config['webpush_vapid_private']); }