diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php index 621a3c33c75e9d86b10b63d32cb030c8c2c8f9b2..eb33d223071fde172d92d98baa359b276f53bb7e 100755 --- a/apps/contacts/lib/vcard.php +++ b/apps/contacts/lib/vcard.php @@ -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;