From 7cd0b2e0b0d549d0f3bcbd5162e1d31ad62815ff Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 18 Jun 2007 07:37:43 +0000 Subject: [PATCH] Bug #10228 : don't show 1, when we can show 0. Literally. Yay. --- includes/SpecialStatistics.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index 1c9e0ab61c..62e9435cd5 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -24,6 +24,10 @@ function wfSpecialStatistics() { $admins = $dbr->selectField( 'user_groups', 'COUNT(*)', array( 'ug_group' => 'sysop' ), $fname ); $numJobs = $dbr->estimateRowCount('job'); + /* Zero rows still do single row read for row that doesn't exist, but people are annoyed by that */ + if ($numJobs == 1) { + $numJobs = 0; + } if ($action == 'raw') { $wgOut->disable(); -- 2.20.1