From: David Thompson Date: Mon, 14 Jul 2014 17:08:32 +0000 (-0400) Subject: Fix indenting in _isAgentBlacklisted and _isIPBlacklisted. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8c39d2f732954a3b6a1ae348b375328ff5c9669a;p=trustcommerce.git Fix indenting in _isAgentBlacklisted and _isIPBlacklisted. --- 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;