r46510 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46509‎ | r46510 | r46511 >
Date:01:24, 29 January 2009
Author:brion
Status:ok
Tags:
Comment:
fix notice when poking at some pages and session stuff isn't set up
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.body.php
@@ -1343,7 +1343,7 @@
13441344 * OutputPageCheckLastModified hook
13451345 */
13461346 static function checkLastModified( $modifiedTimes ) {
1347 - if ( self::hasSession() ) {
 1347+ if ( self::hasSession() && isset( $_SESSION['wsCollection']['timestamp'] ) ) {
13481348 $modifiedTimes['collection'] = $_SESSION['wsCollection']['timestamp'];
13491349 }
13501350 return true;

Status & tagging log