Skip to content
Snippets Groups Projects
Commit 102cf150 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Fixed error in OC_Contacts_VCard::addFromDAVData as pointed out by Guillaume ZITTA

parent ec40f69c
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ class OC_Contacts_VCard{
* @param string $uri the uri of the card, default based on the UID
* @return insertid on success or null if no card.
*/
public static function add($aid, $card, $uri=null){
public static function add($aid, OC_VObject $card, $uri=null){
if(is_null($card)){
OC_Log::write('contacts','OC_Contacts_VCard::add. No vCard supplied', OC_Log::ERROR);
return null;
......@@ -267,7 +267,7 @@ class OC_Contacts_VCard{
*/
public static function addFromDAVData($id,$uri,$data){
$card = OC_VObject::parse($data);
return self::add($id, $data, $uri);
return self::add($id, $card, $uri);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment