diff --git a/ajax/getdetails.php b/ajax/getdetails.php index 1f321fa3..19addd91 100644 --- a/ajax/getdetails.php +++ b/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/photo.php b/photo.php index ac49d6c3..1b955a8a 100644 --- a/photo.php +++ b/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)){