Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/drivers/kolab/kolab_calendar.php
Show First 20 Lines • Show All 396 Lines • ▼ Show 20 Lines | public function list_events($start, $end, $search = null, $virtual = 1, $query = [], $filter_query = null) | ||||
} | } | ||||
} | } | ||||
// partstat filter | // partstat filter | ||||
if (count($partstat_exclude) && !empty($event['attendees'])) { | if (count($partstat_exclude) && !empty($event['attendees'])) { | ||||
foreach ($event['attendees'] as $attendee) { | foreach ($event['attendees'] as $attendee) { | ||||
if ( | if ( | ||||
in_array($attendee['email'], $user_emails) | in_array($attendee['email'], $user_emails) | ||||
&& in_array($attendee['status'], $partstat_exclude) | && in_array($attendee['status'] ?? null, $partstat_exclude) | ||||
) { | ) { | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return true; | return true; | ||||
}); | }); | ||||
▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines |