WatchedItemStore::countVisitingWatchersMultiple() shouldn't query all titles when...
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 18 Sep 2018 16:01:32 +0000 (12:01 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 18 Sep 2018 16:01:32 +0000 (12:01 -0400)
commitf5469d36602cb2a95396830b14e9a631d698f3a6
treed96bac5ca79edf745c1b4b099d76224ebca7a8bc
parent180c63a911b7baec365855ab0585c95eaa8815ca
WatchedItemStore::countVisitingWatchersMultiple() shouldn't query all titles when asked for none

If a caller gives an empty array for $targetsWithVisitThresholds, per
the documentation it should be expecting an empty array in return, not a
count of watchers for every title in the database.

Bug: T204729
Change-Id: I0f25fae301450d077bb30597281aaef0fba209d4
includes/watcheditem/WatchedItemStore.php