From: Domas Mituzas Date: Mon, 18 Jun 2007 07:37:43 +0000 (+0000) Subject: Bug #10228 : don't show 1, when we can show 0. Literally. Yay. X-Git-Tag: 1.31.0-rc.0~52518 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=7cd0b2e0b0d549d0f3bcbd5162e1d31ad62815ff;p=lhc%2Fweb%2Fwiklou.git Bug #10228 : don't show 1, when we can show 0. Literally. Yay. --- 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();