mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
Contacts: Don't try to render invalid properties.
This commit is contained in:
parent
01409ffb20
commit
6fc62e2827
@ -447,11 +447,13 @@ class OC_Contacts_VCard{
|
||||
$details = array();
|
||||
foreach($object->children as $property){
|
||||
$temp = self::structureProperty($property);
|
||||
if(array_key_exists($property->name,$details)){
|
||||
$details[$property->name][] = $temp;
|
||||
}
|
||||
else{
|
||||
$details[$property->name] = array($temp);
|
||||
if(!is_null($temp)) {
|
||||
if(array_key_exists($property->name,$details)){
|
||||
$details[$property->name][] = $temp;
|
||||
}
|
||||
else{
|
||||
$details[$property->name] = array($temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $details;
|
||||
|
Loading…
x
Reference in New Issue
Block a user