From 3595118df31e67cd82c392d9c756821ebbc99cfc Mon Sep 17 00:00:00 2001 From: Jimmy Collins Date: Tue, 11 Jul 2006 15:57:09 +0000 Subject: [PATCH] Only show pages in SpecialStatistics with page_counter > 0 --- includes/SpecialStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1