From 6ad5511c1e3b068db689ce3634a64cf16a821d0c Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Tue, 3 Oct 2017 22:36:07 +0200 Subject: [PATCH] fix "PHP Notice: Undefined property" warnings --- inc/caldav-POST.php | 2 +- inc/caldav-PUT-functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/caldav-POST.php b/inc/caldav-POST.php index 88df1286..bcb6266f 100644 --- a/inc/caldav-POST.php +++ b/inc/caldav-POST.php @@ -50,7 +50,7 @@ function handle_freebusy_request( $ic ) { } dbg_error_log( "POST", "Responding with free/busy for %d attendees", count($attendees) ); - if ($c->enable_attendee_group_resolution) { + if (isset($c->enable_attendee_group_resolution) && $c->enable_attendee_group_resolution) { $new_attendees = array(); foreach( $attendees AS $attendee ) { $v = $attendee->Value(); diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index c5453a98..f9c10ea1 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -510,7 +510,7 @@ function do_scheduling_requests( vCalendar $resource, $create, $old_data = null return do_scheduling_reply($resource,$organizer); } - if ($c->enable_attendee_group_resolution) { + if (isset($c->enable_attendee_group_resolution) && $c->enable_attendee_group_resolution) { $mail_domain = preg_replace( '/^.*@/i', '', $c->admin_email ); $attendees = $resource->GetAttendees(); $new_attendees = array();