Skip to content

Commit a6b22fb

Browse files
committed
Adjust code logic.
1 parent f6dcfc7 commit a6b22fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

notification/method/webpush.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public function get_type(): string
9898
public function is_available(type_interface $notification_type = null): bool
9999
{
100100
return $this->config['wpn_webpush_enable']
101-
&& !empty($this->config['wpn_webpush_vapid_public']) && !empty($this->config['wpn_webpush_vapid_private']);
101+
&& $this->config['wpn_webpush_vapid_public']
102+
&& $this->config['wpn_webpush_vapid_private'];
102103
}
103104

104105
/**

0 commit comments

Comments
 (0)