From cc523283fed3f5c60cf330f24bf6f461a2862761 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 9 Feb 2023 20:22:13 +1300 Subject: [PATCH] Fix notice, do not pass values that match defaults --- CRM/Core/BAO/Log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/Log.php b/CRM/Core/BAO/Log.php index 3d10a68537..e6e83aac4d 100644 --- a/CRM/Core/BAO/Log.php +++ b/CRM/Core/BAO/Log.php @@ -89,9 +89,9 @@ class CRM_Core_BAO_Log extends CRM_Core_DAO_Log { } if (!$userID) { - $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') { + if ($api_key && strtolower($api_key) !== 'null') { $userID = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $api_key, 'id', 'api_key'); } } -- 2.25.1