diff --git a/lib/app.php b/lib/app.php index fb9c13eb..30a0b58f 100644 --- a/lib/app.php +++ b/lib/app.php @@ -249,21 +249,10 @@ class OC_Contacts_App { */ public static function getDefaultCategories() { return array( - (string)self::$l10n->t('Birthday'), - (string)self::$l10n->t('Business'), - (string)self::$l10n->t('Call'), - (string)self::$l10n->t('Clients'), - (string)self::$l10n->t('Deliverer'), - (string)self::$l10n->t('Holidays'), - (string)self::$l10n->t('Ideas'), - (string)self::$l10n->t('Journey'), - (string)self::$l10n->t('Jubilee'), - (string)self::$l10n->t('Meeting'), - (string)self::$l10n->t('Other'), - (string)self::$l10n->t('Personal'), - (string)self::$l10n->t('Projects'), - (string)self::$l10n->t('Questions'), + (string)self::$l10n->t('Friends'), + (string)self::$l10n->t('Family'), (string)self::$l10n->t('Work'), + (string)self::$l10n->t('Other'), ); } @@ -277,7 +266,9 @@ class OC_Contacts_App { if(count($vcaddressbooks) > 0) { $vcaddressbookids = array(); foreach($vcaddressbooks as $vcaddressbook) { - $vcaddressbookids[] = $vcaddressbook['id']; + if($vcaddressbook['userid'] === OCP\User::getUser()) { + $vcaddressbookids[] = $vcaddressbook['id']; + } } $start = 0; $batchsize = 10;