X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FArticle.php;h=0a4b5ee30e33cfc94550873507a8a48544a48b10;hb=39aa51bfbed8dd557d945d568963c2dad5429016;hp=e73fe9d64001446411a7d4bf9cfcbbe1718880c7;hpb=23bb3d1cb48483ec6d6d94e90f99f08fef1d5865;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Article.php b/includes/Article.php index e73fe9d640..0a4b5ee30e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -386,6 +386,11 @@ class Article implements Page { $content = $this->fetchContentObject(); + if ( !$content ) { + wfProfileOut( __METHOD__ ); + return false; + } + // @todo Get rid of mContent everywhere! $this->mContent = ContentHandler::getContentText( $content ); ContentHandler::runLegacyHooks( 'ArticleAfterFetchContent', array( &$this, &$this->mContent ) );