summaryrefslogtreecommitdiff
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:02:39 (GMT)
commitdca5f2bef6829871e73a55d464f002983faad536 (patch)
treef03245166b17d3d00ae5da9cbbe1c0d77cd4af1c
parentcfd38ccde982b230dfad1426c5d9d1fc85417cb5 (diff)
downloadroundcubemail-plugins-kolab-dca5f2bef6829871e73a55d464f002983faad536.tar.gz
Avoid null values for empty fieldsroundcubemail-plugins-kolab-3.1.12
-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;
}