summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-08-29 18:48:54 +0000
committeralecpl <alec@alec.pl>2009-08-29 18:48:54 +0000
commitb4fa59143ed869b3aaccf8cea2e80c4ec437fead (patch)
tree3cf926aaeb025c2ddf37437801c48a06a9ffd618 /program/include
parente83f035887e3a463568465673ae92f365788c2a5 (diff)
- Fix saving empty values in LDAP contact data (#1485781)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index b13e88395..3bb747b0d 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -413,7 +413,7 @@ class rcube_ldap extends rcube_addressbook
$newentry['objectClass'] = $this->prop['LDAP_Object_Classes'];
foreach ($save_cols as $col => $val) {
$fld = $this->_map_field($col);
- if ($fld != '') {
+ if ($fld && $val) {
// The field does exist, add it to the entry.
$newentry[$fld] = $val;
} // end if
@@ -457,7 +457,7 @@ class rcube_ldap extends rcube_addressbook
$deletedata = array();
foreach ($save_cols as $col => $val) {
$fld = $this->_map_field($col);
- if ($fld != '') {
+ if ($fld) {
// The field does exist compare it to the ldap record.
if ($record[$col] != $val) {
// Changed, but find out how.