WatchedItemStore::countVisitingWatchersMultiple() shouldn't query all titles when...
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 18 Sep 2018 16:01:32 +0000 (12:01 -0400)
committerReedy <reedy@wikimedia.org>
Thu, 20 Sep 2018 22:05:18 +0000 (22:05 +0000)
commit1f664ea4ebc686f3879e806d2059a85df18e3cd2
treea6961c961957470fc8968028e43f30f4625c4bbb
parenta4c806563471b16c644186618b39b84069c0d04c
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
(cherry picked from commit f5469d36602cb2a95396830b14e9a631d698f3a6)
RELEASE-NOTES-1.31
includes/watcheditem/WatchedItemStore.php