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']; } /**