Skip to content

Commit

Permalink
Use offsetGet() for config values check.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxu committed Nov 30, 2024
1 parent 736c9f1 commit 1495b00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notification/method/webpush.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ public function get_type(): string
*/
public function is_available(type_interface $notification_type = null): bool
{
return $this->config['wpn_webpush_enable']
&& $this->config['wpn_webpush_vapid_public']
&& $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'];
}

/**
Expand Down

0 comments on commit 1495b00

Please sign in to comment.