Skip to content

Commit

Permalink
Strict comparison fix
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Jan 7, 2024
1 parent 220d3aa commit af56139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acp/wpn_acp_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function save_settings()
];

// Do not validate and update private key field if the content is ******** and the key was already set
if ($config_array['wpn_webpush_vapid_private'] == '********' && $this->config['wpn_webpush_vapid_private'])
if ($config_array['wpn_webpush_vapid_private'] === '********' && $this->config['wpn_webpush_vapid_private'])
{
unset($display_settings['wpn_webpush_vapid_private'], $config_array['wpn_webpush_vapid_private']);
}
Expand Down

0 comments on commit af56139

Please sign in to comment.