summaryrefslogtreecommitdiff
path: root/www/admin/addressbook
diff options
context:
space:
mode:
authorSteffen Hansen <steffen@kdab.com>2004-10-28 01:21:35 (GMT)
committerSteffen Hansen <steffen@kdab.com>2004-10-28 01:21:35 (GMT)
commit23843ed45813645e7629fa87f3a11e6b39e41dc3 (patch)
tree9debad3aa6a5548029a74a66d02354b6a119bffd /www/admin/addressbook
parente03d358c04b1f41c5336e86c5c5fcf3add2f49f3 (diff)
downloadkolab-webadmin-23843ed45813645e7629fa87f3a11e6b39e41dc3.tar.gz
fix for issue495 (Deleting attributes in addressbook)
Diffstat (limited to 'www/admin/addressbook')
-rw-r--r--www/admin/addressbook/addr.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/admin/addressbook/addr.php b/www/admin/addressbook/addr.php
index 134b03b..1098381 100644
--- a/www/admin/addressbook/addr.php
+++ b/www/admin/addressbook/addr.php
@@ -137,12 +137,13 @@ if( !$errors ) {
$key = $attr;
$args = array();
while (!empty($_POST[$key])) {
- $args[$count] = trim($_POST[$key]);
+ $args[$count] = $_POST[$key];
$count++;
$key = $attr."_".$count;
}
if ($count > 0) $ldap_object[$attr] = $args;
- else if (!empty($_POST[$key])) $ldap_object[$attr] = $_POST[$key];
+ elseif (!empty($_POST[$key])) $ldap_object[$attr] = $_POST[$key];
+ else $ldap_object[$attr] = array();
}
if( !empty( $_POST['alias'] ) ) {
$ldap_object['alias'] = array_unique( array_filter( array_map( 'trim', preg_split( '/\n/', $_POST['alias'] ) ), 'strlen') );