From 4b12070e70993978117815779dca61e41de80f6d Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 18 Jul 2011 22:02:11 +0000 Subject: [PATCH] Fix autoblocks in r92480 r92482 -- modified the wrong half --- includes/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Block.php b/includes/Block.php index 1e535d8c94..a59d935f9f 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -644,7 +644,7 @@ class Block { $autoblock->prevents( 'editownusertalk', $this->prevents( 'editownusertalk' ) ); $dbr = wfGetDB( DB_SLAVE ); - if ( $timestamp == 'infinity' ) { + if ( $this->mExpiry == 'infinity' ) { # Original block was indefinite, start an autoblock now $autoblock->mExpiry = Block::getAutoblockExpiry( $timestamp ); } else { -- 2.20.1