r101016 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101015‎ | r101016 | r101017 >
Date:18:30, 27 October 2011
Author:petrb
Status:deferred
Tags:
Comment:
once more, now crashed on non existent users
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php
@@ -61,9 +61,11 @@
6262 // it's anon user and we want to track them
6363 $sanitizedusername = $userName;
6464 $anon = true;
65 - } else {
 65+ } else if ( $user != null ) {
6666 // Fix capitalisation issues
6767 $sanitizedusername = $user->getName();
 68+ } else {
 69+ return true;
6870 }
6971 if ( $anon == false )
7072 {

Status & tagging log