From: umherirrender Date: Thu, 2 Jan 2014 11:27:31 +0000 (+0100) Subject: Change Title::isExternal to use strict comparsion X-Git-Tag: 1.31.0-rc.0~17396^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=be60f017705bde6da77e559977cbecb402bd8a5b;p=lhc%2Fweb%2Fwiklou.git Change Title::isExternal to use strict comparsion Change-Id: Ib4e646f98dc6d17a8cb1ca837dcdc9d48f85e2a7 --- diff --git a/includes/Title.php b/includes/Title.php index 0b4b99c800..64cea919d7 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -59,7 +59,7 @@ class Title { var $mDbkeyform = ''; // /< Main part with underscores var $mUserCaseDBKey; // /< DB key with the initial letter in the case specified by the user var $mNamespace = NS_MAIN; // /< Namespace index, i.e. one of the NS_xxxx constants - var $mInterwiki = ''; // /< Interwiki prefix (or null string) + var $mInterwiki = ''; // /< Interwiki prefix var $mFragment; // /< Title fragment (i.e. the bit after the #) var $mArticleID = -1; // /< Article ID, fetched from the link cache on demand var $mLatestID = false; // /< ID of most recent revision @@ -700,11 +700,11 @@ class Title { * @return Bool */ public function isExternal() { - return ( $this->mInterwiki != '' ); + return $this->mInterwiki !== ''; } /** - * Get the interwiki prefix (or null string) + * Get the interwiki prefix * * @return String Interwiki prefix */