From 7d9194e0664696b30d3a039f112cfa0635f1de6d Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 9 May 2013 15:44:21 +0200 Subject: [PATCH] CardDAV: Wrong arguments used to deleteContact() --- lib/carddav/backend.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/carddav/backend.php b/lib/carddav/backend.php index 7ca74eef..cf2c49b1 100644 --- a/lib/carddav/backend.php +++ b/lib/carddav/backend.php @@ -182,7 +182,6 @@ class Backend extends \Sabre_CardDAV_Backend_Abstract { * @return array */ public function getCard($addressbookid, $carduri) { - \OCP\Util::writeLog('contacts', __METHOD__.' identifier: ' . $carduri . ' ' . print_r($addressbookid, true), \OCP\Util::DEBUG); list($id, $backend) = $this->getBackendForAddressBook($addressbookid); $contact = $backend->getContact($id, array('uri' => $carduri)); return ($contact ? $contact : false); @@ -228,7 +227,7 @@ class Backend extends \Sabre_CardDAV_Backend_Abstract { */ public function deleteCard($addressbookid, $carduri) { list($id, $backend) = $this->getBackendForAddressBook($addressbookid); - return $backend->deleteContact($id); + return $backend->deleteContact($addressbookid, array('uri' => $carduri)); } /**