From 61b0b68fa35141c7fd448802185547dee51b070e Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 16 Feb 2023 10:15:34 +1100 Subject: [PATCH] [REF] Fix undefined variable notice in WordPress tests Remove reference to as not need --- CRM/Utils/REST.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Utils/REST.php b/CRM/Utils/REST.php index 4c6edc9c66..0500b0d0c9 100644 --- a/CRM/Utils/REST.php +++ b/CRM/Utils/REST.php @@ -193,7 +193,6 @@ class CRM_Utils_REST { if ((count($args) != 3) && ($args[1] != 'ping')) { return self::error('Unknown function invocation.'); } - $store = NULL; if ($args[1] == 'ping') { return self::ping(); @@ -222,7 +221,7 @@ class CRM_Utils_REST { // At this point we know we are not calling ping which does not require authentication. // Therefore we now need a valid server key and API key. // Check and see if a valid secret API key is provided. - $api_key = CRM_Utils_Request::retrieve('api_key', 'String', $store, FALSE, NULL, 'REQUEST'); + $api_key = CRM_Utils_Request::retrieve('api_key', 'String'); if (!$api_key || strtolower($api_key) == 'null') { return self::error("FATAL: mandatory param 'api_key' (user key) missing"); } -- 2.25.1