[pLog-svn] r3253 - plugins/trunk/0ipabuse/class/security

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Sun Apr 16 14:57:10 GMT 2006


Author: pwestbro
Date: 2006-04-16 14:57:09 +0000 (Sun, 16 Apr 2006)
New Revision: 3253

Modified:
   plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php
Log:
Fixed a bug where the locale object was used before it was retrieved



Modified: plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php
===================================================================
--- plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php	2006-04-16 04:07:39 UTC (rev 3252)
+++ plugins/trunk/0ipabuse/class/security/ipabusefilter.class.php	2006-04-16 14:57:09 UTC (rev 3253)
@@ -63,6 +63,7 @@
             }
   
             $clientIp = Client::getIp();
+            $locale = $blogInfo->getLocale();            
             $result = new PipelineResult();
 
             if (dba_exists( $clientIp, $db ) ) {
@@ -76,7 +77,6 @@
                 }
                 $newValueInt = $numAccesses + 1;
                 dba_replace($clientIp, "$newValueInt", $db);
-                error_log( "$newValueInt" );
             }
             else {
                 // Add an entry for this ip address



More information about the pLog-svn mailing list