From 51f135c73246042336125e2567b27b88c3630a73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 6 May 2005 05:48:57 +0000 Subject: [PATCH] * (bug 2087) Fixed a bug that made it impossible to pass "0" to any special page with the Special:Page/0 syntax. --- includes/SpecialAllpages.php | 4 ++-- includes/SpecialPage.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 87a24d6ea2..73d7ce1446 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -35,9 +35,9 @@ function wfSpecialAllpages( $par=NULL ) { ); } - if ( $par ) { + if ( isset($par) ) { indexShowChunk( $namespace, $par, $invert ); - } elseif ( $from ) { + } elseif ( isset($from) ) { indexShowChunk( $namespace, $from, $invert ); } else { indexShowToplevel ( $namespace, $invert ); diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 7c2cb87031..2c7faff364 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -202,7 +202,7 @@ class SpecialPage $bits = split( "/", $title->getDBkey(), 2 ); $name = $bits[0]; - if( empty( $bits[1] ) ) { + if( !isset( $bits[1] ) ) { // bug 2087 $par = NULL; } else { $par = $bits[1]; -- 2.20.1