SiteStats row initialization cleanups
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 31 Jan 2018 21:39:44 +0000 (13:39 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 2 Feb 2018 08:22:03 +0000 (08:22 +0000)
commit3f05f346a8e2c5766c72c0d982b8e5bcb0a61e5a
tree4017bb493f839792de6c12eeb4c8310c6923164f
parent7babd362babcbf7f20adb8e12edb4f4bc1d4249f
SiteStats row initialization cleanups

* Remove unreachable code (field cannot be both null and -1)
* Avoid PHP warnings during test runs in miser mode due to
  the $row field being "false".
* Init the site_stats row in unit tests to unbreak miser mode.

Change-Id: Ieb45cb3068b71e01aa12c674e0bfcf13a7f2493c
includes/SiteStats.php
tests/phpunit/MediaWikiTestCase.php