r82368 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82367‎ | r82368 | r82369 >
Date:00:57, 18 February 2011
Author:reedy
Status:ok
Tags:
Comment:
Fixup assignment in conditional
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -1193,7 +1193,8 @@
11941194 );
11951195 }
11961196
1197 - if ( $user = $this->getRelevantUser() ) {
 1197+ $user = $this->getRelevantUser();
 1198+ if ( $user ) {
11981199 $id = $user->getID();
11991200 $ip = $user->isAnon();
12001201 $rootUser = $user->getName();

Status & tagging log