diff options
author | Mathieu Parent <math.parent@gmail.com> | 2008-11-11 20:41:47 (GMT) |
---|---|---|
committer | Mathieu Parent <math.parent@gmail.com> | 2008-11-11 20:41:47 (GMT) |
commit | 51daf1a66ce7eadaece93d399786907617bc4761 (patch) | |
tree | 2aee7a2b27708d1f1572c4b016e9fe3307a1d925 /www | |
parent | cdb009c46c4778877590650564afebe03f01eaf5 (diff) | |
download | kolab-webadmin-51daf1a66ce7eadaece93d399786907617bc4761.tar.gz |
kolab/issue3230 (opportunity to delete freebusy value)
Diffstat (limited to 'www')
-rw-r--r-- | www/admin/settings/index.php.in | 4 |
1 files changed, 3 insertions, 1 deletions
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)); |