Fix CLASS:PRIVATE issue

This commit is contained in:
Jörg Lehrke 2010-03-15 17:18:17 +00:00
parent 28383ae67d
commit 8b5dfcb926

View File

@ -515,14 +515,7 @@ class calendar_ical extends calendar_boupdate
break; break;
case 'CLASS': case 'CLASS':
if ($this->productManufacturer == 'funambol') $attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'PRIVATE';
{
$attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'PRIVATE';
}
else
{
$attributes['CLASS'] = $event['public'] ? 'PUBLIC' : 'CONFIDENTIAL';
}
break; break;
case 'ORGANIZER': case 'ORGANIZER':
@ -1796,12 +1789,12 @@ class calendar_ical extends calendar_boupdate
'recur_interval' => 'recur_interval', 'recur_interval' => 'recur_interval',
'recur_data' => 'recur_data', 'recur_data' => 'recur_data',
'recur_enddate' => 'recur_enddate', 'recur_enddate' => 'recur_enddate',
'recur_exception' => 'recur_exception',
'title' => 'title', 'title' => 'title',
'alarm' => 'alarm', 'alarm' => 'alarm',
); );
$defaultFields['basic'] = $defaultFields['minimal'] + array( $defaultFields['basic'] = $defaultFields['minimal'] + array(
'recur_exception' => 'recur_exception',
'priority' => 'priority', 'priority' => 'priority',
); );
@ -1899,6 +1892,7 @@ class calendar_ical extends calendar_boupdate
case 'e66': case 'e66':
case '6120c': case '6120c':
case 'nokia 6131': case 'nokia 6131':
case 'n97 mini':
$this->supportedFields = $defaultFields['s60']; $this->supportedFields = $defaultFields['s60'];
break; break;
default: default: