Skip to content

Commit

Permalink
Merge branch 'main' of github.com:scopen-coop/roundcube_caldav
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed Nov 17, 2024
2 parents 874c7a3 + d72e65b commit 073dc74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/php/set_response.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ function if_no_dtend_add_one_to_event(Event &$event)
*/
function set_method_field(ICal $ical, &$response, bool $is_Organizer)
{
if ($ical->cal['VCALENDAR']['METHOD']) {
if (
is_array($ical->cal['VCALENDAR'])
&& array_key_exists('METHOD', $ical->cal['VCALENDAR'])
&& $ical->cal['VCALENDAR']['METHOD']
) {
$response['METHOD'] = $ical->cal['VCALENDAR']['METHOD'];
} elseif ($is_Organizer) {
$response['METHOD'] = 'REPLY';
Expand Down

0 comments on commit 073dc74

Please sign in to comment.