dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve cache assertions in WatchedItemStoreUnitTest
[lhc/web/wiklou.git]
/
includes
/
WatchedItemStore.php
diff --git
a/includes/WatchedItemStore.php
b/includes/WatchedItemStore.php
index
721901f
..
fc3af5f
100644
(file)
--- a/
includes/WatchedItemStore.php
+++ b/
includes/WatchedItemStore.php
@@
-186,6
+186,10
@@
class WatchedItemStore {
* @return WatchedItem|false
*/
public function getWatchedItem( User $user, LinkTarget $target ) {
+ if ( $user->isAnon() ) {
+ return false;
+ }
+
$cached = $this->getCached( $user, $target );
if ( $cached ) {
return $cached;