Fix yearly recurrence issue for version 1.0

This commit is contained in:
Jörg Lehrke 2009-12-06 18:04:08 +00:00
parent 082b870051
commit d6da8d8980

View File

@ -1756,7 +1756,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'])