Skip to content

Commit

Permalink
Fix issue with malformed Icalendar attendees
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang authored and mrubinsk committed Feb 6, 2021
1 parent df79628 commit bb6d995
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/Event.php
Expand Up @@ -902,7 +902,16 @@ public function toiCalendar($calendar, $includeFiles = true)
}
}

$vEvent->setAttribute($attribute, $email, $params);
/**
* Do not set attributes without a name
* This may happen if an (imported?) attendee has no proper email
* address AND is not a horde user.
*
* See also https://lists.horde.org/archives/kronolith/Week-of-Mon-20210125/009723.html
*/
if ($attribute) {
$vEvent->setAttribute($attribute, $email, $params);
}
}

// Alarms.
Expand Down

0 comments on commit bb6d995

Please sign in to comment.