diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index 553d7fbe..115d3a9b 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -679,7 +679,7 @@ function write_attendees( $dav_id, $ical ) { $processed = array(); foreach( $attendees AS $v ) { $attendee = $v->Value(); - if ( $processed[$attendee] ) { + if ( isset($processed[$attendee]) ) { dbg_error_log( 'LOG', 'Duplicate attendee "%s" in resource "%d"', $attendee, $dav_id ); dbg_error_log( 'LOG', 'Original: "%s"', $processed[$attendee] ); dbg_error_log( 'LOG', 'Duplicate: "%s"', $v->Render() );