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
No related branches found
No related tags found
No related merge requests found
...@@ -447,11 +447,13 @@ class OC_Contacts_VCard{ ...@@ -447,11 +447,13 @@ 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(array_key_exists($property->name,$details)){ if(!is_null($temp)) {
$details[$property->name][] = $temp; if(array_key_exists($property->name,$details)){
} $details[$property->name][] = $temp;
else{ }
$details[$property->name] = array($temp); else{
$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.
Finish editing this message first!
Please register or to comment