Contacts: Don't try to render invalid properties.
This commit is contained in:
parent
f9aadfff7a
commit
eda42cece9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue