From 1fd5285e94f334ca32924eb896712059a7f4d1b2 Mon Sep 17 00:00:00 2001 From: Chris Haas Date: Thu, 21 May 2026 15:02:54 -0500 Subject: [PATCH] Fix parens in IF block --- postmark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postmark.php b/postmark.php index 91353da..ddab06b 100644 --- a/postmark.php +++ b/postmark.php @@ -291,7 +291,7 @@ public function save_settings() { } // We validate that 'api_key' contains only allowed caracters [letters, numbers, dash]. - if ( isset( $data['api_key'] ) && ( 1 === preg_match( '/^[A-Za-z0-9\-]*$/', $data['api_key'] || 'POSTMARK_API_TEST' === $data['api_key'] ) ) ) { + if ( isset( $data['api_key'] ) && ( 1 === preg_match( '/^[A-Za-z0-9\-]*$/', $data['api_key'] ) || 'POSTMARK_API_TEST' === $data['api_key'] ) ) { $settings['api_key'] = $data['api_key']; } else { $settings['api_key'] = '';