From 8c39d2f732954a3b6a1ae348b375328ff5c9669a Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 14 Jul 2014 13:08:32 -0400 Subject: [PATCH] Fix indenting in _isAgentBlacklisted and _isIPBlacklisted. --- trustcommerce.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trustcommerce.php b/trustcommerce.php index ce6f4b9..6b029cd 100644 --- a/trustcommerce.php +++ b/trustcommerce.php @@ -164,8 +164,8 @@ class org_fsf_payment_trustcommerce extends CRM_Core_Payment { $dao = CRM_Core_DAO::executeQuery('SELECT * FROM `trustcommerce_useragent_blacklist`'); while($dao->fetch()) { if(preg_match('/'.$dao->name.'/', $agent) === 1) { - error_log(' [client '.$ip.'] [agent '.$agent.'] - Blacklisted by USER_AGENT rule #'.$dao->id); - return TRUE; + error_log(' [client '.$ip.'] [agent '.$agent.'] - Blacklisted by USER_AGENT rule #'.$dao->id); + return TRUE; } } return FALSE; @@ -178,8 +178,8 @@ class org_fsf_payment_trustcommerce extends CRM_Core_Payment { $dao = CRM_Core_DAO::executeQuery('SELECT * FROM `trustcommerce_blacklist`'); while($dao->fetch()) { if($ip >= $dao->start && $ip <= $dao->end) { - error_log('[client '.$ip.'] [agent '.$agent.'] Blacklisted by IP rule #'.$dao->id); - return TRUE; + error_log('[client '.$ip.'] [agent '.$agent.'] Blacklisted by IP rule #'.$dao->id); + return TRUE; } } return FALSE; -- 2.25.1