summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-06-28 16:11:06 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2016-06-28 16:11:06 +0200
commit5f6944954bcbd356dd1fe11ac1698bc8178cb84e (patch)
tree77dcfb1fee58c7f35b2dd5028eb4f524088d588e /apps/dav/lib
parentb6397ef73a765be807efe363703f27013fd50d7a (diff)
downloadnextcloud-server-5f6944954bcbd356dd1fe11ac1698bc8178cb84e.tar.gz
nextcloud-server-5f6944954bcbd356dd1fe11ac1698bc8178cb84e.zip
get only vcard which match both the address book id and the vcard uri
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CardDAV/CardDavBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php
index 2ad9f4778c9..39f76a4b420 100644
--- a/apps/dav/lib/CardDAV/CardDavBackend.php
+++ b/apps/dav/lib/CardDAV/CardDavBackend.php
@@ -848,7 +848,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
$query = $this->db->getQueryBuilder();
$query->select('*')->from($this->dbCardsTable)
->where($query->expr()->eq('uri', $query->createNamedParameter($uri)))
- ->where($query->expr()->eq('addressbookid', $query->createNamedParameter($addressBookId)));
+ ->andWhere($query->expr()->eq('addressbookid', $query->createNamedParameter($addressBookId)));
$queryResult = $query->execute();
$contact = $queryResult->fetch();
$queryResult->closeCursor();