From 4413130c5206c05364a6123ff1b794f41c5d166c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 1 Jun 2023 10:18:11 +0200 Subject: [PATCH] Fix PHP warning --- plugins/libkolab/lib/kolab_format_event.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/libkolab/lib/kolab_format_event.php b/plugins/libkolab/lib/kolab_format_event.php index d9d4127f..9293487a 100644 --- a/plugins/libkolab/lib/kolab_format_event.php +++ b/plugins/libkolab/lib/kolab_format_event.php @@ -175,7 +175,7 @@ class kolab_format_event extends kolab_format_xcal } // organizer is part of the attendees list in Roundcube - if ($object['organizer']) { + if (!empty($object['organizer'])) { $object['organizer']['role'] = '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 = $this->obj->status(); if ($status == kolabformat::StatusTentative) - $object['free_busy'] = 'tentative'; + $object['free_busy'] = 'tentative'; else if ($status == kolabformat::StatusCancelled) - $object['cancelled'] = true; + $object['cancelled'] = true; // this is an exception object if ($this->obj->recurrenceID()->isValid()) {