From: Chad Horohoe Date: Wed, 16 Jun 2010 21:48:31 +0000 (+0000) Subject: Return boolean, not a file object X-Git-Tag: 1.31.0-rc.0~36489 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0aff6df77b3af5fd4c9ddf0775a81b160200aa8a;p=lhc%2Fweb%2Fwiklou.git Return boolean, not a file object --- diff --git a/includes/Title.php b/includes/Title.php index 1b812a84ce..62a083a8f1 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3704,7 +3704,7 @@ class Title { switch( $this->mNamespace ) { case NS_MEDIA: case NS_FILE: - return wfFindFile( $this ); // file exists, possibly in a foreign repo + return (bool)wfFindFile( $this ); // file exists, possibly in a foreign repo case NS_SPECIAL: return SpecialPage::exists( $this->getDBkey() ); // valid special page case NS_MAIN: