From 7cb1c09e7e7c8c21a5b431fcd3e5fedf327b0dee Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 27 Aug 2014 22:39:19 +0200 Subject: [PATCH] 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 --- includes/specials/SpecialListfiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1