| Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php |
| — | — | @@ -32,7 +32,7 @@ |
| 33 | 33 | global $wgOnlineStatusBarDefaultEnabled; |
| 34 | 34 | // check if user had enabled this feature before we write to db |
| 35 | 35 | if ( $user->getOption( 'OnlineStatusBar_active', $wgOnlineStatusBarDefaultEnabled ) ) { |
| 36 | | - $userName->getName(); |
| | 36 | + $userName = $user->getName(); |
| 37 | 37 | OnlineStatusBar::purge( $userName ); |
| 38 | 38 | OnlineStatusBar_StatusCheck::deleteStatus( $userName ); |
| 39 | 39 | } |