Don't clobber revision size of 0
authorJackmcbarn <jackmcbarn@gmail.com>
Sun, 28 Sep 2014 03:52:19 +0000 (23:52 -0400)
committerJackmcbarn <jackmcbarn@gmail.com>
Mon, 29 Sep 2014 14:46:18 +0000 (10:46 -0400)
commit4fb4ad91b4559743e2c70907a86960f1b62e5994
treebe7395e79b55d3a0014ef05cf1e10e7aa05ceaad
parent911fd76521d9a3ade214079f3b6b8dbd82a43726
Don't clobber revision size of 0

When a revision's size is 0, don't clobber it by changing it to null. This
causes, among other things, moves of empty pages to not show a revision
size. If we get to where the else used to be, either mSize is 0 (and doing
nothing is correct), or mSize is already null, in which case this didn't
do anything anyway. We know this because, above, we initialized it with
$this->mSize = isset( $row['len'] ) ? intval( $row['len'] ) : null;

Change-Id: I3d9b9163368c57b9a7906f6569119081b945d57e
includes/Revision.php