r104670 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104669‎ | r104670 | r104671 >
Date:13:07, 30 November 2011
Author:petrb
Status:deferred
Tags:
Comment:
doesn't change parser cache when status can't be checked (invalid space etc.)
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php
@@ -212,7 +212,7 @@
213213 }
214214
215215 // if user is online we need to remove parser cache so that page update when status change
216 - if ( $result[0] != 'offline' ) {
 216+ if ( $result !== false && $result[0] != 'offline' ) {
217217 $parser->getOutput()->updateCacheExpiry($wgOnlineStatusBar_LogoutTime);
218218 }
219219

Status & tagging log