From e6b89d67fc0418f2ccad3bc48d06452f48d1b88f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 5 Sep 2012 21:52:03 +0200 Subject: [PATCH] Do strict check for $par in Special:Log Otherwise Special:Log/0 would not behave as expected. Change-Id: I47ac43ca71bd7384f19c51a11f114240b0cc0702 --- includes/specials/SpecialLog.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } -- 2.20.1