From b7f93df5b8c3e46c9556959fa50155979a90e155 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 19 May 2009 14:54:20 +0000 Subject: [PATCH] Code style tweak, use strval() to make this all much shorter. --- includes/specials/SpecialExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index 06bf34a150..7e500f70c9 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -68,7 +68,7 @@ class SpecialExport extends SpecialPage { $page = $wgRequest->getText( 'pages' ); $nsindex = $wgRequest->getText( 'nsindex', '' ); - if ( $nsindex !== '' && $nsindex !== null && $nsindex !== false ) { + if ( strval( $nsindex ) !== '' ) { /** * Same implementation as above, so same @fixme */ -- 2.20.1