steffen: server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/iCalendar iCalendar.php, 1.5, 1.6

cvs at intevation.de cvs at intevation.de
Wed Jan 26 08:32:33 CET 2005


Author: steffen

Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/iCalendar
In directory doto:/tmp/cvs-serv20404/kolab-resource-handlers/fbview/fbview/framework/iCalendar

Modified Files:
	iCalendar.php 
Log Message:
recurrence exclusions (Issue243)

Index: iCalendar.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/iCalendar/iCalendar.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- iCalendar.php	17 Nov 2004 12:51:39 -0000	1.5
+++ iCalendar.php	26 Jan 2005 07:32:31 -0000	1.6
@@ -365,9 +365,8 @@
                 case 'EXDATE':
                     $values = array();
                     $dates = array();
-                    preg_match_all('/,([^,]*)/', ',' . $value, $values);
-
-                    foreach ($values as $value) {
+                    preg_match_all('/,([^,]*)/', ',' . $value, $values, PREG_PATTERN_ORDER );
+                    foreach ($values[1] as $value) {
                         if (isset($params['VALUE'])) {
                             if ($params['VALUE'] == 'DATE-TIME') {
                                 $dates[] = $this->_parseDateTime($value);





More information about the commits mailing list