steffen: server/kolab-resource-handlers/kolab-resource-handlers/resmgr resmgr.php, 1.54, 1.55

cvs at intevation.de cvs at intevation.de
Fri Nov 19 00:45:17 CET 2004


Author: steffen

Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/resmgr
In directory doto:/tmp/cvs-serv4023/kolab-resource-handlers/resmgr

Modified Files:
	resmgr.php 
Log Message:
Fix for Issue538 (ATTENDEE missing CN param)

Index: resmgr.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/resmgr/resmgr.php,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- resmgr.php	18 Nov 2004 10:48:22 -0000	1.54
+++ resmgr.php	18 Nov 2004 23:45:14 -0000	1.55
@@ -483,7 +483,20 @@
     }
     $itip_reply->setAttribute('ORGANIZER', $itip->getAttribute('ORGANIZER'), array_pop($itip->getAttribute('ORGANIZER', true)));
 
-    $params = array();
+    $attendees = $itip->getAttribute( 'ATTENDEE' );
+    if( !is_array( $attendees ) ) {
+      $attendees = array( $attendees );
+    }
+    $params = $itip->getAttribute( 'ATTENDEE', true );
+    for( $i = 0; $i < count($attendees); $i++ ) {
+      $attendee = preg_replace('/^mailto:\s*/i', '', $attendees[$i]);
+      if ($attendee != $resource) {
+	continue;
+      }
+      $params = $params[$i];
+      break;
+    }
+
     switch ($type) {
         case RM_ITIP_DECLINE:
             myLog("Sending DECLINE iTip reply to $organiser", RM_LOG_DEBUG);





More information about the commits mailing list