Fix vCal 1.0 RRULE issue

This commit is contained in:
Jörg Lehrke 2010-01-12 13:54:30 +00:00
parent 07d7b66735
commit 0f88cd4553

View File

@ -390,7 +390,14 @@ class calendar_ical extends calendar_boupdate
break;
case 'CLASS':
if ($this->productManufacturer == 'funambol')
{
$attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'PRIVATE';
}
else
{
$attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'CONFIDENTIAL';
}
break;
case 'ORGANIZER':
@ -1202,6 +1209,7 @@ class calendar_ical extends calendar_boupdate
if ($this->log)
{
$event_info['stored_event'] = $this->read($event_info['stored_event']['id']);
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" .
array2string($event_info['stored_event'])."\n",3,$this->logfile);
}
@ -1797,7 +1805,7 @@ class calendar_ical extends calendar_boupdate
break;
case 'D': // 1.0
if (preg_match('/D(\d+) #(.\d)/', $recurence, $recurenceMatches))
if (preg_match('/D(\d+) #(\d+)/', $recurence, $recurenceMatches))
{
$vcardData['recur_interval'] = $recurenceMatches[1];
if ($recurenceMatches[2] > 0 && $vcardData['end'])