mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
CardDAV: Wrong arguments used to deleteContact()
This commit is contained in:
parent
02e8ad0c86
commit
7d9194e066
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user