Fixed autoblock bug
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 11 Jul 2006 05:29:31 +0000 (05:29 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 11 Jul 2006 05:29:31 +0000 (05:29 +0000)
includes/User.php

index 3d4d6fc..64c1f0c 100644 (file)
@@ -1551,6 +1551,8 @@ class User {
                        # Just update the timestamp
                        $ipblock->updateTimestamp();
                        return;
+               } else {
+                       $ipblock = new Block;
                }
 
                # Make a new block object with the desired properties