From 0cd6acf54fdfde2f463b5380728df9e03ae1e032 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Fri, 28 May 2021 16:50:24 +0200 Subject: [PATCH] externalParametersBlacklist always log --- CRM/Core/Payment/TrustCommerce.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index 9e987cb..347848e 100644 --- a/CRM/Core/Payment/TrustCommerce.php +++ b/CRM/Core/Payment/TrustCommerce.php @@ -339,10 +339,9 @@ class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment { require_once $file; $result=externalParametersBlacklist($tc_params); - if ($result[0] == TRUE){ - error_log("TrustCommerce: _isParamsBlacklisted() " . $result[1]); - return TRUE; - } + error_log("TrustCommerce: _isParamsBlacklisted() " . $result[1]); + return ($result[0] == TRUE); + }else error_log("TrustCommerce: missing ParamsBlacklist.php"); -- 2.25.1