Fixed complete breakage of anon-only autoblocks, broken since r20436.
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 20 Apr 2007 04:17:15 +0000 (04:17 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 20 Apr 2007 04:17:15 +0000 (04:17 +0000)
includes/Block.php

index 6257b71..94bfa5b 100644 (file)
@@ -149,7 +149,7 @@ class Block
                }
 
                # Try range block
-               if ( $this->loadRange( $address, $killExpired, $user == 0 ) ) {
+               if ( $this->loadRange( $address, $killExpired, $user ) ) {
                        if ( $user && $this->mAnonOnly ) {
                                $this->clear();
                                return false;