r54086 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54085‎ | r54086 | r54087 >
Date:10:21, 31 July 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
PHP Fatal error: Call to a member function exists() on a non-object in /var/www/w/includes/OutputPage.php on line 146
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -143,7 +143,7 @@
144144 // add the title revision to the key
145145 $t = Title::newFromText( $reqSet['title'] );
146146 // if there is no title (don't worry we just use the $wgStyleVersion var (which should be updated on relevant commits)
147 - if( $t->exists() ){
 147+ if( $t && $t->exists() ){
148148 if( $t->getLatestRevID() > $this->mLatestScriptRevID )
149149 $this->mLatestScriptRevID = $t->getLatestRevID();
150150 }

Status & tagging log