r67613 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67612‎ | r67613 | r67614 >
Date:12:36, 8 June 2010
Author:jojo
Status:ok
Tags:
Comment:
check if $_SESSION exists before using it
Modified paths:
  • /trunk/extensions/Collection/Collection.session.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.session.php
@@ -23,6 +23,7 @@
2424
2525 class CollectionSession {
2626 static function hasSession() {
 27+ if ( !session_id() ) return false;
2728 return isset( $_SESSION['wsCollection'] );
2829 }
2930

Status & tagging log