From: Jimmy Collins Date: Tue, 11 Jul 2006 15:57:09 +0000 (+0000) Subject: Only show pages in SpecialStatistics with page_counter > 0 X-Git-Tag: 1.31.0-rc.0~56300 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=3595118df31e67cd82c392d9c756821ebbc99cfc;p=lhc%2Fweb%2Fwiklou.git Only show pages in SpecialStatistics with page_counter > 0 --- diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index 42ba7a0f8f..ffe58dc733 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -84,7 +84,7 @@ function wfSpecialStatistics() { global $wgDisableCounters, $wgUser, $wgLang; if( !$wgDisableCounters ) { - $res = $dbr->query( "SELECT page_namespace, page_title, page_counter FROM {$page} WHERE page_is_redirect = 0 ORDER BY page_counter DESC LIMIT 0,10", __METHOD__ ); + $res = $dbr->query( "SELECT page_namespace, page_title, page_counter FROM {$page} WHERE page_is_redirect = 0 AND page_counter > 0 ORDER BY page_counter DESC LIMIT 0,10", __METHOD__ ); if( $res ) { $wgOut->addHtml( '

' . wfMsgHtml( 'statistics-mostpopular' ) . '

' ); $skin =& $wgUser->getSkin();