Fix Yearly RRULE Issue with Funambol Outlook Sync Client

This commit is contained in:
Jörg Lehrke 2009-11-19 11:52:41 +00:00
parent 6eab77b15f
commit 1b20783041

View File

@ -1690,7 +1690,7 @@ class calendar_ical extends calendar_boupdate
break; break;
case 'Y': // 1.0 case 'Y': // 1.0
if (preg_match('/YM(\d+) #(.\d)/', $recurence, $recurenceMatches)) if (preg_match('/YM(\d+)[^#]*#(.\d)/', $recurence, $recurenceMatches))
{ {
$vcardData['recur_interval'] = $recurenceMatches[1]; $vcardData['recur_interval'] = $recurenceMatches[1];
if ($recurenceMatches[2] > 0 && $vcardData['end']) if ($recurenceMatches[2] > 0 && $vcardData['end'])