From 22b718c0358b52a4452915896261f053379be6d2 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 11 Jul 2006 05:29:31 +0000 Subject: [PATCH] Fixed autoblock bug --- includes/User.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/User.php b/includes/User.php index 3d4d6fcf85..64c1f0cdf6 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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 -- 2.20.1