Reedy has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/58234


Change subject: bug 42649 - PHP Fatal error: Call to a member function 
isLocal() on a non-object in Title.php
......................................................................

bug 42649 - PHP Fatal error: Call to a member function isLocal() on a 
non-object in Title.php

Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79
---
M includes/Title.php
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/34/58234/1

diff --git a/includes/Title.php b/includes/Title.php
index 4fbe41e..aa8fb93 100644
--- a/includes/Title.php
+++ b/includes/Title.php
@@ -575,10 +575,12 @@
         */
        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;
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/58234
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6027c818785b12f6be9c47caab77ffa4a587a79
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to