mathieu: server/kolab-webadmin/kolab-webadmin/www/admin/settings index.php.in, 1.1, 1.2

cvs at kolab.org cvs at kolab.org
Tue Nov 11 21:41:49 CET 2008


Author: mathieu

Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/settings
In directory doto:/tmp/cvs-serv31273/kolab-webadmin/kolab-webadmin/www/admin/settings

Modified Files:
	index.php.in 
Log Message:
kolab/issue3230 (opportunity to delete freebusy value) 



Index: index.php.in
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/www/admin/settings/index.php.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- index.php.in	10 Apr 2008 10:48:36 -0000	1.1
+++ index.php.in	11 Nov 2008 20:41:47 -0000	1.2
@@ -150,7 +150,9 @@
 
 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));





More information about the commits mailing list