From: Ævar Arnfjörð Bjarmason Date: Wed, 31 Aug 2005 14:22:23 +0000 (+0000) Subject: * !empty( $par ) => $par != '' X-Git-Tag: 1.6.0~1747 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=2326ae2044ae1d98579c58b0aabd97293e793f99;p=lhc%2Fweb%2Fwiklou.git * !empty( $par ) => $par != '' * Super optimizing --- 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 );