From: Tim Starling Date: Sat, 10 Jul 2004 01:09:36 +0000 (+0000) Subject: bug fix X-Git-Tag: 1.5.0alpha1~2703 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=d56d507cac6d519728bed8171fbdad450300a73f;p=lhc%2Fweb%2Fwiklou.git bug fix --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 52b027a780..04ff9c1915 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -460,10 +460,10 @@ htmlspecialchars( $wgLang->recodeForEdit( $this->textbox1 ) ) . $reason = $wgUser->blockedFor(); $ip = $wgIP; - if ( is_string( $id ) ) { - $name = $id; - } else { + if ( is_numeric( $id ) ) { $name = User::whoIs( $id ); + } else { + $name = $id; } $link = "[[" . $wgLang->getNsText( Namespace::getUser() ) . ":{$name}|{$name}]]";