We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 736c9f1 commit a38a995Copy full SHA for a38a995
1 file changed
notification/method/webpush.php
@@ -98,9 +98,9 @@ public function get_type(): string
98
*/
99
public function is_available(type_interface $notification_type = null): bool
100
{
101
- return $this->config['wpn_webpush_enable']
102
- && $this->config['wpn_webpush_vapid_public']
103
- && $this->config['wpn_webpush_vapid_private'];
+ return $this->config->offsetGet('wpn_webpush_enable')
+ && $this->config->offsetGet('wpn_webpush_vapid_public')
+ && $this->config->offsetGet('wpn_webpush_vapid_private');
104
}
105
106
/**
0 commit comments