From a861fd02b653f595ce8b2e48b9b295ec22ccfdeb Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 20 Nov 2006 06:01:45 +0000 Subject: [PATCH] Fix bug reported by Slowking_Man where retroactive autoblocks take effect even if the user being blocked was already blocked with autoblocks disabled. --- includes/Block.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Block.php b/includes/Block.php index a6646fca82..39ebe04c8b 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -400,7 +400,8 @@ class Block $affected = $dbw->affectedRows(); $dbw->commit(); - $this->doRetroactiveAutoblock(); + if ($affected) + $this->doRetroactiveAutoblock(); return $affected; } -- 2.20.1