From: Alexandre Emsenhuber Date: Wed, 27 Aug 2014 20:39:19 +0000 (+0200) Subject: Use as strict comparison to check whether an user name was provided in Special:ListFiles X-Git-Tag: 1.31.0-rc.0~13877 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=7cb1c09e7e7c8c21a5b431fcd3e5fedf327b0dee;p=lhc%2Fweb%2Fwiklou.git Use as strict comparison to check whether an user name was provided in Special:ListFiles Otherwise Special:ListFiles/0 will not behave as expected. Change-Id: I1fa503b4b514a471ded798b54e867435d30b80c5 --- diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index 04a83c8f5d..2a97abc89d 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -87,7 +87,7 @@ class ImageListPager extends TablePager { $this->mIncluding = $including; $this->mShowAll = $showAll; - if ( $userName ) { + if ( $userName !== null && $userName !== '' ) { $nt = Title::newFromText( $userName, NS_USER ); if ( !is_null( $nt ) ) { $this->mUserName = $nt->getText();