From: Brion Vibber Date: Sun, 2 Apr 2006 03:56:51 +0000 (+0000) Subject: Live fix: handle bad titles gracefully again X-Git-Tag: 1.6.0~77 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=78c88c963cb3d511b7d2be37985addaa5d086672;p=lhc%2Fweb%2Fwiklou.git Live fix: handle bad titles gracefully again --- diff --git a/includes/Article.php b/includes/Article.php index 210f775566..33ffc7630c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -437,7 +437,9 @@ class Article { $this->mIsRedirect = $data->page_is_redirect; $this->mLatest = $data->page_latest; } else { - $lc->addBadLinkObj( $this->mTitle ); + if ( is_object( $this->mTitle ) ) { + $lc->addBadLinkObj( $this->mTitle ); + } $this->mTitle->mArticleID = 0; }