From: Ævar Arnfjörð Bjarmason Date: Fri, 6 May 2005 05:48:57 +0000 (+0000) Subject: * (bug 2087) Fixed a bug that made it impossible to pass "0" to any special X-Git-Tag: 1.5.0alpha2~289 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=51f135c73246042336125e2567b27b88c3630a73;p=lhc%2Fweb%2Fwiklou.git * (bug 2087) Fixed a bug that made it impossible to pass "0" to any special page with the Special:Page/0 syntax. --- 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];