fix and comparison in pingLimiter
authorbsitu <bsitu@wikimedia.org>
Fri, 23 Mar 2012 23:57:05 +0000 (16:57 -0700)
committerbsitu <bsitu@wikimedia.org>
Fri, 23 Mar 2012 23:57:53 +0000 (16:57 -0700)
Change-Id: Ib8aa8ecf169acdf69c55f8c1dbce0d709fb9e852

includes/User.php

index 90bef91..566dcc7 100644 (file)
@@ -1517,7 +1517,7 @@ class User {
                        $count = $wgMemc->get( $key );
                        // Already pinged?
                        if( $count ) {
-                               if( $count > $max ) {
+                               if( $count >= $max ) {
                                        wfDebug( __METHOD__ . ": tripped! $key at $count $summary\n" );
                                        if( $wgRateLimitLog ) {
                                                wfSuppressWarnings();