Remove another ss_active_users check from SiteStats::isSane
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 24 Feb 2014 17:17:35 +0000 (18:17 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 24 Feb 2014 17:17:35 +0000 (18:17 +0100)
Also add a comment to method doc to make sure, nobody will add it again.

Follow-Up: Id8f1cb7035ae0058fb34a6c7bdf7bf9f6c740a69
Follow-Up: I268599be96106e1175fdf9750a2adc9468ebc93c
Change-Id: Ifd6da554b531720aace4497f7fbc2f58c12edc07

includes/SiteStats.php

index 6e2b5fa..7169b2e 100644 (file)
@@ -221,6 +221,8 @@ class SiteStats {
        /**
         * Is the provided row of site stats sane, or should it be regenerated?
         *
+        * Checks only fields which are filled by SiteStatsInit::refresh.
+        *
         * @param $row
         *
         * @return bool
@@ -229,7 +231,6 @@ class SiteStats {
                if ( $row === false
                        || $row->ss_total_pages < $row->ss_good_articles
                        || $row->ss_total_edits < $row->ss_total_pages
-                       || $row->ss_users < $row->ss_active_users
                ) {
                        return false;
                }