Skip to content

Commit

Permalink
This may be string if there is only one attendee.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 10, 2016
1 parent a92a1b6 commit d9bddf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imp/lib/Ajax/Imple/ItipRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ protected function _handle(Horde_Variables $vars)
if ($action == 'accept-import') {
try {
$a = $components[$key]->getAttribute('ATTENDEE');
if (!is_array($a)) {
$a = array($a);
}
$a_params = $components[$key]->getAttribute('ATTENDEE', true);
foreach ($a as $a_key => $attendee) {
$attendee_email = preg_replace('/mailto:/i', '', $attendee);
Expand Down

0 comments on commit d9bddf1

Please sign in to comment.