From: Victor Vasiliev Date: Sat, 30 Jan 2010 14:27:28 +0000 (+0000) Subject: Fix "you are blocked" message for users who were blocked by zero-ID user. X-Git-Tag: 1.31.0-rc.0~38032 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=d668c11fc22b2a9664c0ed78804cc8545beef44e;p=lhc%2Fweb%2Fwiklou.git Fix "you are blocked" message for users who were blocked by zero-ID user. --- diff --git a/includes/User.php b/includes/User.php index 9dbd40397d..f90969a76b 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1154,6 +1154,8 @@ class User { if ( $this->mBlock->load( $ip , $this->mId ) ) { wfDebug( __METHOD__ . ": Found block.\n" ); $this->mBlockedby = $this->mBlock->mBy; + if( $this->mBlockedby == "0" ) + $this->mBlockedby = $this->mBlock->mByName; $this->mBlockreason = $this->mBlock->mReason; $this->mHideName = $this->mBlock->mHideName; $this->mAllowUsertalk = $this->mBlock->mAllowUsertalk;