Follow-up r84588 CR
authorHappy-melon <happy-melon@users.mediawiki.org>
Sun, 26 Jun 2011 23:10:57 +0000 (23:10 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sun, 26 Jun 2011 23:10:57 +0000 (23:10 +0000)
includes/Block.php

index 7911163..0b52d85 100644 (file)
@@ -625,7 +625,7 @@ class Block {
                $autoblock->prevents( 'editownusertalk', $this->prevents( 'editownusertalk' ) );
 
                $dbr = wfGetDB( DB_SLAVE );
-               if ( $this->mTimestamp == $dbr->getInfinity() ) {
+               if ( $this->mExpiry == $dbr->getInfinity() ) {
                        # Original block was indefinite, start an autoblock now
                        $autoblock->mExpiry = Block::getAutoblockExpiry( $timestamp );
                } else {