mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix small bugs
This commit is contained in:
parent
54a3b28dce
commit
fe62c803e2
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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)){
|
||||
|
|
|
|||
Loading…
Reference in a new issue