From: Reedy Date: Mon, 8 Apr 2013 22:29:57 +0000 (+0100) Subject: bug 42649 - PHP Fatal error: Call to a member function isLocal() on a non-object... X-Git-Tag: 1.31.0-rc.0~20064^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=38dd67f747353f508081b3bff1aac1976b34a0e7;p=lhc%2Fweb%2Fwiklou.git bug 42649 - PHP Fatal error: Call to a member function isLocal() on a non-object in Title.php Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79 --- diff --git a/includes/Title.php b/includes/Title.php index 4fbe41e98a..aa8fb93f31 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -575,10 +575,12 @@ class Title { */ public function isLocal() { if ( $this->mInterwiki != '' ) { - return Interwiki::fetch( $this->mInterwiki )->isLocal(); - } else { - return true; + $iw = Interwiki::fetch( $this->mInterwiki ); + if ( $iw ) { + return $iw->isLocal(); + } } + return true; } /**