From: Niklas Laxström Date: Fri, 31 Jul 2009 10:21:02 +0000 (+0000) Subject: PHP Fatal error: Call to a member function exists() on a non-object in /var/www... X-Git-Tag: 1.31.0-rc.0~40606 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=8c8b9ef7779b8279755c71130a5ea0da7a05fabd;p=lhc%2Fweb%2Fwiklou.git PHP Fatal error: Call to a member function exists() on a non-object in /var/www/w/includes/OutputPage.php on line 146 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 27e2fc063a..e19ac7da0f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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(); }