From fe62c803e24587de01c85e722f026641f567e789 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Sat, 17 Sep 2011 00:46:04 +0200 Subject: [PATCH] fix small bugs --- apps/contacts/ajax/getdetails.php | 2 +- apps/contacts/photo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/contacts/ajax/getdetails.php b/apps/contacts/ajax/getdetails.php index 1f321fa335b..19addd91223 100644 --- a/apps/contacts/ajax/getdetails.php +++ b/apps/contacts/ajax/getdetails.php @@ -34,7 +34,7 @@ if( !OC_User::isLoggedIn()){ } -$card = OC_Contacts_VCard::findCard( $id ); +$card = OC_Contacts_VCard::find( $id ); if( $card === false ){ echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); exit(); diff --git a/apps/contacts/photo.php b/apps/contacts/photo.php index ac49d6c31a8..1b955a8a84d 100644 --- a/apps/contacts/photo.php +++ b/apps/contacts/photo.php @@ -46,7 +46,7 @@ if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ exit(); } -$content = OC_Contacts_Card::parse($card['carddata']); +$content = OC_Contacts_VCard::parse($card['carddata']); // invalid vcard if( is_null($content)){ -- 2.39.5