mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
When creating a fake event, don't create a blank RRULE.
This commit is contained in:
parent
1afbfc4974
commit
a059beb833
@ -61,9 +61,10 @@ else if ( $qry->rows > 1 ) {
|
||||
// if the event is confidential we fake one that just says "Busy"
|
||||
$confidential = new iCalendar( array(
|
||||
'SUMMARY' => translate('Busy'), 'CLASS' => 'CONFIDENTIAL',
|
||||
'DTSTART' => $ical->Get('DTSTART'),
|
||||
'RRULE' => $ical->Get('RRULE')
|
||||
'DTSTART' => $ical->Get('DTSTART')
|
||||
) );
|
||||
$rrule = $ical->Get('RRULE');
|
||||
if ( isset($rrule) && $rrule != '' ) $confidential->Set('RRULE', $rrule);
|
||||
$duration = $ical->Get('DURATION');
|
||||
if ( isset($duration) && $duration != "" ) {
|
||||
$confidential->Set('DURATION', $duration );
|
||||
|
||||
@ -77,9 +77,10 @@ function calendar_to_xml( $properties, $item ) {
|
||||
// if the event is confidential we fake one that just says "Busy"
|
||||
$confidential = new iCalendar( array(
|
||||
'SUMMARY' => translate('Busy'), 'CLASS' => 'CONFIDENTIAL',
|
||||
'DTSTART' => $ical->Get('DTSTART'),
|
||||
'RRULE' => $ical->Get('RRULE')
|
||||
'DTSTART' => $ical->Get('DTSTART')
|
||||
) );
|
||||
$rrule = $ical->Get('RRULE');
|
||||
if ( isset($rrule) && $rrule != '' ) $confidential->Set('RRULE', $rrule);
|
||||
$duration = $ical->Get('DURATION');
|
||||
if ( isset($duration) && $duration != "" ) {
|
||||
$confidential->Set('DURATION', $duration );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user