fix small bugs

This commit is contained in:
Jakob Sack 2011-09-17 00:46:04 +02:00
parent 54a3b28dce
commit fe62c803e2
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)){