gunnar: server/php-kolab/Kolab_Freebusy/Freebusy Cache.php,1.8,1.9

cvs at kolab.org cvs at kolab.org
Mon Mar 3 15:48:27 CET 2008


Author: gunnar

Update of /kolabrepository/server/php-kolab/Kolab_Freebusy/Freebusy
In directory doto:/tmp/cvs-serv1011/php-kolab/Kolab_Freebusy/Freebusy

Modified Files:
	Cache.php 
Log Message:
Fix the CN attribute handling. This requires Horde CVS

Index: Cache.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Freebusy/Freebusy/Cache.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Cache.php	27 Feb 2008 08:44:38 -0000	1.8
+++ Cache.php	3 Mar 2008 14:48:25 -0000	1.9
@@ -58,7 +58,7 @@
         }
 
         $vCal = $fb->generate(null, null, $access->fbpast, $access->fbfuture,
-                              $access->owner);
+                              $access->owner, $access->cn);
         if (is_a($vCal, 'PEAR_Error')) {
             $vCal;
         }
@@ -193,10 +193,11 @@
         
         // Create new vFreebusy.
         $vFb = &Horde_iCalendar::newComponent('vfreebusy', $vCal);
+        $params = array();
         if ($access->cn) {
-            $cn = ';CN="' $access->cn . '":';
+            $params['cn'] = $access->cn;
         }
-        $vFb->setAttribute('ORGANIZER', $cn . 'MAILTO:' . $access->owner);
+        $vFb->setAttribute('ORGANIZER', 'MAILTO:' . $access->owner, $params);
         
         $vFb->setAttribute('DTSTAMP', time());
         $vFb->setAttribute('URL', 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);





More information about the commits mailing list