diff --git a/lib/app.php b/lib/app.php index a60286a4..4ddf6062 100644 --- a/lib/app.php +++ b/lib/app.php @@ -223,10 +223,10 @@ class OC_Contacts_App { */ public static function getVCategories() { if (is_null(self::$categories)) { - if(OC_VCategories::isEmpty('contacts')) { + if(OC_VCategories::isEmpty('contact')) { self::scanCategories(); } - self::$categories = new OC_VCategories('contacts', + self::$categories = new OC_VCategories('contact', null, self::getDefaultCategories()); } diff --git a/lib/vcard.php b/lib/vcard.php index e98b32e7..e892c2b6 100644 --- a/lib/vcard.php +++ b/lib/vcard.php @@ -551,7 +551,7 @@ class OC_Contacts_VCard { ) ); } - + OC_Contacts_App::getVCategories()->purgeObject($id); return true; }