From: jenkins-bot Date: Mon, 24 Jul 2017 20:40:53 +0000 (+0000) Subject: Merge "SiteStats::jobs fix when there is a single job" X-Git-Tag: 1.31.0-rc.0~2615 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=commitdiff_plain;h=1a81ba9bcb801de0be82fbd44332dada53800879;hp=8813f0f3f8161033dbbf332a4dee20de7e2c9fae;p=lhc%2Fweb%2Fwiklou.git Merge "SiteStats::jobs fix when there is a single job" --- diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 5a0947d0e7..df3e305c27 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -222,13 +222,6 @@ class SiteStats { } catch ( JobQueueError $e ) { self::$jobs = 0; } - /** - * Zero rows still do single row read for row that doesn't exist, - * but people are annoyed by that - */ - if ( self::$jobs == 1 ) { - self::$jobs = 0; - } } return self::$jobs; }