mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-14 15:56:41 +00:00
Fix scheduling replies with mixed internal and external (ignored) attendees
"new DAVPrincipal" always returns an object, so $attendee_principal will never be false
This commit is contained in:
parent
af1707ef1d
commit
fd5e7450f2
@ -223,7 +223,7 @@ function handle_schedule_request( $ical ) {
|
||||
dbg_error_log( "PUT", "Delivering to %s", $attendee_email );
|
||||
|
||||
$attendee_principal = new DAVPrincipal ( array ('email'=>$attendee_email, 'options'=> array ( 'allow_by_email' => true ) ) );
|
||||
if ( $attendee_principal == false ){
|
||||
if ( ! $attendee_principal->Exists() ){
|
||||
$attendee->SetParameterValue ('SCHEDULE-STATUS','5.3;No scheduling support for user');
|
||||
continue;
|
||||
}
|
||||
@ -415,7 +415,7 @@ function do_scheduling_reply( vCalendar $resource, vProperty $organizer ) {
|
||||
// attendees) should remain unmodified. Therefore, we have to make $schedule_original
|
||||
// and $schedule_request be initialized by each attendee's object here.
|
||||
$attendee_principal = new DAVPrincipal ( array ('email'=>$email, 'options'=> array ( 'allow_by_email' => true ) ) );
|
||||
if ( $attendee_principal == false ){
|
||||
if ( ! $attendee_principal->Exists() ){
|
||||
dbg_error_log( 'PUT', 'Could not find attendee %s', $email);
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user