From: Alexandre Emsenhuber Date: Wed, 5 Sep 2012 19:52:03 +0000 (+0200) Subject: Do strict check for $par in Special:Log X-Git-Tag: 1.31.0-rc.0~22453 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=e6b89d67fc0418f2ccad3bc48d06452f48d1b88f;p=lhc%2Fweb%2Fwiklou.git Do strict check for $par in Special:Log Otherwise Special:Log/0 would not behave as expected. Change-Id: I47ac43ca71bd7384f19c51a11f114240b0cc0702 --- diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php index 8ab09768be..7800e56620 100644 --- a/includes/specials/SpecialLog.php +++ b/includes/specials/SpecialLog.php @@ -33,7 +33,7 @@ class SpecialLog extends SpecialPage { /** * List log type for which the target is a user * Thus if the given target is in NS_MAIN we can alter it to be an NS_USER - * Title user instead. + * Title user instead. */ private $typeOnUser = array( 'block', @@ -47,7 +47,7 @@ class SpecialLog extends SpecialPage { public function execute( $par ) { global $wgLogRestrictions; - + $this->setHeaders(); $this->outputHeader(); @@ -65,7 +65,7 @@ class SpecialLog extends SpecialPage { // Set values $opts->fetchValuesFromRequest( $this->getRequest() ); - if ( $par ) { + if ( $par !== null ) { $this->parseParams( $opts, (string)$par ); }