From d79b5accf229a0d9bafe228e21dbdf9541b2f99f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 7 Oct 2005 12:06:39 +0000 Subject: [PATCH] * When a user would: 1. Enter Special:Contributions/User 2. Press submit &namespace= would be appended to the GET request, "" would then be typecast to int which would yield 0 meaning that not edits from all namespaces would be returned but just those from the main namespace --- includes/SpecialContributions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 3f2d8e0aa1..f3ea43e3a9 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -188,7 +188,7 @@ function wfSpecialContributions( $par = null ) { $finder->set_offset($offset); $nsurl = $xnsurl = ""; - if (($ns = $wgRequest->getVal('namespace', null)) !== null) { + if (($ns = $wgRequest->getVal('namespace', null)) !== null && $ns !== '') { $nsurl = "&namespace=$ns"; $xnsurl = htmlspecialchars($nsurl); $finder->set_namespace($ns); -- 2.20.1