Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php |
— | — | @@ -61,9 +61,11 @@ |
62 | 62 | // it's anon user and we want to track them
|
63 | 63 | $sanitizedusername = $userName;
|
64 | 64 | $anon = true;
|
65 | | - } else {
|
| 65 | + } else if ( $user != null ) {
|
66 | 66 | // Fix capitalisation issues
|
67 | 67 | $sanitizedusername = $user->getName();
|
| 68 | + } else {
|
| 69 | + return true;
|
68 | 70 | }
|
69 | 71 | if ( $anon == false )
|
70 | 72 | {
|