summaryrefslogtreecommitdiffstats
path: root/lib/private/Contacts/ContactsMenu
diff options
context:
space:
mode:
authorTobia De Koninck <tobia@ledfan.be>2017-07-02 11:33:59 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-09-15 14:31:39 +0200
commit473a1ecad1e310603f08e1883d29d92463d61653 (patch)
treeb122f34ff1a50593da2134de4c2405639ac6ca43 /lib/private/Contacts/ContactsMenu
parent92c238e0f072299f5ad1c41d86e158b4039094fa (diff)
downloadnextcloud-server-473a1ecad1e310603f08e1883d29d92463d61653.tar.gz
nextcloud-server-473a1ecad1e310603f08e1883d29d92463d61653.zip
Fix tests
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Diffstat (limited to 'lib/private/Contacts/ContactsMenu')
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php
index 6a319d7e145..32bcb58ccda 100644
--- a/lib/private/Contacts/ContactsMenu/ContactsStore.php
+++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php
@@ -106,7 +106,9 @@ class ContactsStore {
}
}
- return array_filter($entries, function(IEntry $entry) use ($self, $skipLocal, $ownGroupsOnly, $selfGroups) {
+ $selfUID = $self->getUID();
+
+ return array_filter($entries, function(IEntry $entry) use ($self, $skipLocal, $ownGroupsOnly, $selfGroups, $selfUID) {
if ($skipLocal && $entry->getProperty('isLocalSystemBook') === true) {
return false;
@@ -120,7 +122,7 @@ class ContactsStore {
}
}
- return $entry->getProperty('UID') !== $self->getUID();
+ return $entry->getProperty('UID') !== $selfUID;
});