diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-05-05 13:44:54 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-05-05 13:49:47 +0200 |
commit | eda42cece900f7ab1447181146b6e515a671d122 (patch) | |
tree | 572140ee1d5df22aab71b9fac5b97921b8261a84 /apps/contacts/lib | |
parent | f9aadfff7ad07f45ed9ba872dcebcebdc6bd2e3f (diff) | |
download | nextcloud-server-eda42cece900f7ab1447181146b6e515a671d122.tar.gz nextcloud-server-eda42cece900f7ab1447181146b6e515a671d122.zip |
Contacts: Don't try to render invalid properties.
Diffstat (limited to 'apps/contacts/lib')
-rwxr-xr-x | apps/contacts/lib/vcard.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/contacts/lib/vcard.php b/apps/contacts/lib/vcard.php index 621a3c33c75..eb33d223071 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; |