From 2326ae2044ae1d98579c58b0aabd97293e793f99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 31 Aug 2005 14:22:23 +0000 Subject: [PATCH] * !empty( $par ) => $par != '' * Super optimizing --- includes/SpecialLog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index a981310ca9..c90bd067c7 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -29,7 +29,7 @@ function wfSpecialLog( $par = '' ) { global $wgRequest; $logReader =& new LogReader( $wgRequest ); - if( '' == $wgRequest->getVal( 'type' ) && !empty( $par ) ) { + if( $wgRequest->getVal( 'type' ) == '' && $par != '' ) { $logReader->limitType( $par ); } $logViewer =& new LogViewer( $logReader ); @@ -254,7 +254,7 @@ class LogViewer { $title = Title::newFromText( $paramArray[0] ); $batch->addObj( $title ); } - $this->numResults++; + ++$this->numResults; } $batch->execute( $wgLinkCache ); -- 2.20.1