Skip to content

Commit a38a995

Browse files
committed
Use offsetGet() for config values check.
1 parent 736c9f1 commit a38a995

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

notification/method/webpush.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public function get_type(): string
9898
*/
9999
public function is_available(type_interface $notification_type = null): bool
100100
{
101-
return $this->config['wpn_webpush_enable']
102-
&& $this->config['wpn_webpush_vapid_public']
103-
&& $this->config['wpn_webpush_vapid_private'];
101+
return $this->config->offsetGet('wpn_webpush_enable')
102+
&& $this->config->offsetGet('wpn_webpush_vapid_public')
103+
&& $this->config->offsetGet('wpn_webpush_vapid_private');
104104
}
105105

106106
/**

0 commit comments

Comments
 (0)