ApiQueryRevisions: Don't be so tricky handling rvstartid/rvendid
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 11 May 2017 22:18:44 +0000 (18:18 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 12 May 2017 17:19:52 +0000 (13:19 -0400)
commit9c8e3214f3c31ddc7b5f7376ba95e2b4d0ec42aa
tree67da459bced71246832a2c2e471b9901c4b6f7fb
parent75483c87221833b87e877361cd918bc58e2ba255
ApiQueryRevisions: Don't be so tricky handling rvstartid/rvendid

If someone strangely supplies 0 as an id, the tricky version confuses
that with null and winds up making the DB layer throw an exception. Just
do it more straightforwardly.

Bug: T165100
Change-Id: Id8376d419e7758c0bf92ad50dd7b7ac283a73101
includes/api/ApiQueryRevisions.php