From: Brion Vibber Date: Mon, 24 Nov 2003 10:24:04 +0000 (+0000) Subject: Sometimes no title object....? X-Git-Tag: 1.1.0~100 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=9c2379e86261366b3b4428eb4376352a221a5957;p=lhc%2Fweb%2Fwiklou.git Sometimes no title object....? --- diff --git a/includes/Article.php b/includes/Article.php index 3d99d4eb14..08594baeeb 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -186,7 +186,13 @@ class Article { $this->mContentLoaded = true; } - function getID() { return $this->mTitle->getArticleID(); } + function getID() { + if( $this->mTitle ) { + return $this->mTitle->getArticleID(); + } else { + return 0; + } + } function getCount() {