From 78c88c963cb3d511b7d2be37985addaa5d086672 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 2 Apr 2006 03:56:51 +0000 Subject: [PATCH] Live fix: handle bad titles gracefully again --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.20.1