summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_storage_cache_contact.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/libkolab/lib/kolab_storage_cache_contact.php')
-rw-r--r--plugins/libkolab/lib/kolab_storage_cache_contact.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_cache_contact.php b/plugins/libkolab/lib/kolab_storage_cache_contact.php
index b70b37f..9666a39 100644
--- a/plugins/libkolab/lib/kolab_storage_cache_contact.php
+++ b/plugins/libkolab/lib/kolab_storage_cache_contact.php
@@ -49,6 +49,10 @@ class kolab_storage_cache_contact extends kolab_storage_cache
if (is_array($sql_data['email'])) {
$sql_data['email'] = $sql_data['email']['address'];
}
+ // avoid value being null
+ if (empty($sql_data['email'])) {
+ $sql_data['email'] = '';
+ }
return $sql_data;
}