summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_storage_cache_contact.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-02-10 15:01:49 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-02-10 15:01:49 (GMT)
commit351f7d61539ffd9b0e964d5349ba93cbd4f96b7b (patch)
treeb9c5f8a165b7f405fd02908752b3282b4a1ed5f9 /plugins/libkolab/lib/kolab_storage_cache_contact.php
parentbc1164e943b420e52d286e03b6babd9efd67da6e (diff)
downloadroundcubemail-plugins-kolab-351f7d61539ffd9b0e964d5349ba93cbd4f96b7b.tar.gz
Avoid null values for empty fields
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;
}