diff --git a/helloasso-woocommerce-gateway.php b/helloasso-woocommerce-gateway.php index 1cc5270..3f66dc3 100644 --- a/helloasso-woocommerce-gateway.php +++ b/helloasso-woocommerce-gateway.php @@ -151,7 +151,7 @@ public function admin_options() $isConnected = true; } - if (isset($_GET['nonce']) || wp_verify_nonce(sanitize_text_field(wp_unslash($_GET['nonce'])), 'helloasso_connect')) { + if (isset($_GET['nonce']) && wp_verify_nonce(sanitize_text_field(wp_unslash($_GET['nonce'])), 'helloasso_connect')) { if (isset($_GET['msg'])) { $msg = sanitize_text_field($_GET['msg']); @@ -323,7 +323,7 @@ public function admin_options() echo '