From: Jakob Sack Date: Fri, 16 Sep 2011 22:46:04 +0000 (+0200) Subject: fix small bugs X-Git-Tag: v3.0~188 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe62c803e24587de01c85e722f026641f567e789;p=nextcloud-server.git fix small bugs --- 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)){