Avoid null values for empty fields
This commit is contained in:
parent
bc1164e943
commit
351f7d6153
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue