From: Brion Vibber Date: Mon, 25 Oct 2010 23:49:03 +0000 (+0000) Subject: Followup for r75314 (bug 23923) -- regression fix for prefix of '0' being ignored... X-Git-Tag: 1.31.0-rc.0~34311 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=2cf3edac06b817d1890879e8f5b2865eee5bbd81;p=lhc%2Fweb%2Fwiklou.git Followup for r75314 (bug 23923) -- regression fix for prefix of '0' being ignored since r75314 Don't forget that the string '0' evaluates to false in boolean context! --- diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index dbf47ed4db..36ac08b943 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -56,9 +56,9 @@ class SpecialPrefixindex extends SpecialAllpages { if( isset( $par ) ){ $this->showPrefixChunk( $namespace, $par, $from ); - } elseif( $prefix ){ + } elseif( $prefix != '' ){ $this->showPrefixChunk( $namespace, $prefix, $from ); - } elseif( $from ){ + } elseif( $from != '' ){ $this->showPrefixChunk( $namespace, $from, $from ); } else { $wgOut->addHTML( $this->namespacePrefixForm( $namespace, null ) );