summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Parent <math.parent@gmail.com>2008-11-11 20:41:47 (GMT)
committerMathieu Parent <math.parent@gmail.com>2008-11-11 20:41:47 (GMT)
commit51daf1a66ce7eadaece93d399786907617bc4761 (patch)
tree2aee7a2b27708d1f1572c4b016e9fe3307a1d925
parentcdb009c46c4778877590650564afebe03f01eaf5 (diff)
downloadkolab-webadmin-51daf1a66ce7eadaece93d399786907617bc4761.tar.gz
kolab/issue3230 (opportunity to delete freebusy value)
-rw-r--r--ChangeLog5
-rw-r--r--www/admin/settings/index.php.in4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a2464c4..00efbe9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-11 Mathieu Parent <math.parent@gmail.com>
+
+ * www/admin/settings/index.php.in: opportunity to delete freebusy value
+ (issue3230)
+
2008-09-08 Richard Bos <richard@radoeka.nl>
* php/admin/include/auth.class.php.in: changed the title of login page
diff --git a/www/admin/settings/index.php.in b/www/admin/settings/index.php.in
index 7431daf..892da7f 100644
--- a/www/admin/settings/index.php.in
+++ b/www/admin/settings/index.php.in
@@ -150,7 +150,9 @@ if( $_REQUEST['submithttpallowunauthfb'] ) {
if( $_REQUEST['submitfreebusypast'] ) {
$attrs = array();
- $attrs['kolabFreeBusyPast'] = trim( $_REQUEST['freebusypast'] );
+ $value = trim( $_REQUEST['freebusypast'] );
+ if( $value == '' ) $value = array();
+ $attrs['kolabFreeBusyPast'] = $value;
if( !($result = ldap_modify($ldap->connection, "k=kolab,".$_SESSION['base_dn'], $attrs)) ) {
$errors[] = sprintf(_("LDAP Error: failed to modify kolab configuration object: %s"),
ldap_error($ldap->connection));