Fix PHP warning
This commit is contained in:
parent
c3de38d72f
commit
4413130c52
1 changed files with 3 additions and 3 deletions
|
@ -175,7 +175,7 @@ class kolab_format_event extends kolab_format_xcal
|
||||||
}
|
}
|
||||||
|
|
||||||
// organizer is part of the attendees list in Roundcube
|
// organizer is part of the attendees list in Roundcube
|
||||||
if ($object['organizer']) {
|
if (!empty($object['organizer'])) {
|
||||||
$object['organizer']['role'] = 'ORGANIZER';
|
$object['organizer']['role'] = 'ORGANIZER';
|
||||||
array_unshift($object['attendees'], $object['organizer']);
|
array_unshift($object['attendees'], $object['organizer']);
|
||||||
}
|
}
|
||||||
|
@ -183,9 +183,9 @@ class kolab_format_event extends kolab_format_xcal
|
||||||
// status defines different event properties...
|
// status defines different event properties...
|
||||||
$status = $this->obj->status();
|
$status = $this->obj->status();
|
||||||
if ($status == kolabformat::StatusTentative)
|
if ($status == kolabformat::StatusTentative)
|
||||||
$object['free_busy'] = 'tentative';
|
$object['free_busy'] = 'tentative';
|
||||||
else if ($status == kolabformat::StatusCancelled)
|
else if ($status == kolabformat::StatusCancelled)
|
||||||
$object['cancelled'] = true;
|
$object['cancelled'] = true;
|
||||||
|
|
||||||
// this is an exception object
|
// this is an exception object
|
||||||
if ($this->obj->recurrenceID()->isValid()) {
|
if ($this->obj->recurrenceID()->isValid()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue