summaryrefslogtreecommitdiffstats
path: root/apps/contacts/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-02-20 23:42:06 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-02-20 23:42:06 +0100
commit7a49c8e59cfd59f6fa33b4f16b9fe48ac06c7ac2 (patch)
treed775c296244ebf3ff967d5296985e2adf395f01f /apps/contacts/lib
parent8ed42623930b16f7cf5d1e02d5f0d0621e50c93d (diff)
parent6540bda238f1b659444016d433c7aeb11873b9be (diff)
downloadnextcloud-server-7a49c8e59cfd59f6fa33b4f16b9fe48ac06c7ac2.tar.gz
nextcloud-server-7a49c8e59cfd59f6fa33b4f16b9fe48ac06c7ac2.zip
Merge gitorious.org:owncloud/owncloud into vcategories
Diffstat (limited to 'apps/contacts/lib')
-rw-r--r--apps/contacts/lib/vcard.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php
index de95e732559..a10d052a2d1 100644
--- a/apps/contacts/lib/vcard.php
+++ b/apps/contacts/lib/vcard.php
@@ -309,7 +309,7 @@ class OC_Contacts_VCard{
* @return boolean
*/
public static function delete($id){
- // FIXME: Add error checking.
+ // FIXME: Add error checking. Touch addressbook.
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_cards WHERE id = ?' );
$stmt->execute(array($id));
@@ -334,6 +334,7 @@ class OC_Contacts_VCard{
// FIXME: Add error checking. Deleting a card gives an Kontact/Akonadi error.
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_cards WHERE addressbookid = ? AND uri=?' );
$stmt->execute(array($aid,$uri));
+ OC_Contacts_Addressbook::touch($aid);
return true;
}