1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

fix small bugs

This commit is contained in:
Jakob Sack 2011-09-17 00:46:04 +02:00
parent e916f7eeeb
commit 6b6a0021fc
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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)){