PHP Fatal error: Call to a member function exists() on a non-object in /var/www...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 31 Jul 2009 10:21:02 +0000 (10:21 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 31 Jul 2009 10:21:02 +0000 (10:21 +0000)
includes/OutputPage.php

index 27e2fc0..e19ac7d 100644 (file)
@@ -143,7 +143,7 @@ class OutputPage {
                                        // add the title revision to the key
                                        $t = Title::newFromText( $reqSet['title'] );
                                        // if there is no title (don't worry we just use the $wgStyleVersion var (which should be updated on relevant commits)
-                                       if( $t->exists() ){
+                                       if( $t && $t->exists() ){
                                                if( $t->getLatestRevID() > $this->mLatestScriptRevID  )
                                                        $this->mLatestScriptRevID = $t->getLatestRevID();
                                        }