mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/17445] Adjust code logic
PHPBB-17445
This commit is contained in:
parent
91f82f386f
commit
637eaf03fb
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@ class webpush extends messenger_base implements extended_method_interface
|
||||||
public function is_available(type_interface $notification_type = null): bool
|
public function is_available(type_interface $notification_type = null): bool
|
||||||
{
|
{
|
||||||
return $this->config['webpush_enable']
|
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'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue