WatchedItemStore: Fix fatal when revision is deleted
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 10 Jul 2019 20:15:20 +0000 (13:15 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 10 Jul 2019 20:15:20 +0000 (13:15 -0700)
commit881e17a0c712076daacf06a65bce3b64fafec477
treee479aa7cfb4e4d012fdb2af385c45123f2702e9a
parentd64677c1be20da3b81fe104011573f93d2400771
WatchedItemStore: Fix fatal when revision is deleted

People following links from their watchlist emails to since-deleted
revisions were getting fatals from
WatchedItemStore::getNotificationTimestamp().

It's hard to tell whether returning null or false is the right thing to
do here, because this function can return both and the difference is not
documented, and I wasn't able to find any callers that care about the
distinction.

Bug: T226741
Change-Id: Ib2a836099343f4c161227266dbeeafbc76dccc2b
includes/watcheditem/WatchedItemStore.php