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

Contacts: Don't try to render invalid properties.

parent f9aadfff
Branches
No related tags found
No related merge requests found
...@@ -447,6 +447,7 @@ class OC_Contacts_VCard{ ...@@ -447,6 +447,7 @@ class OC_Contacts_VCard{
$details = array(); $details = array();
foreach($object->children as $property){ foreach($object->children as $property){
$temp = self::structureProperty($property); $temp = self::structureProperty($property);
if(!is_null($temp)) {
if(array_key_exists($property->name,$details)){ if(array_key_exists($property->name,$details)){
$details[$property->name][] = $temp; $details[$property->name][] = $temp;
} }
...@@ -454,6 +455,7 @@ class OC_Contacts_VCard{ ...@@ -454,6 +455,7 @@ class OC_Contacts_VCard{
$details[$property->name] = array($temp); $details[$property->name] = array($temp);
} }
} }
}
return $details; return $details;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment