Skip to content

Commit c195421

Browse files
authored
Merge pull request #742 from phil-davis/backport-721-4.5
[4.5] Fixed problem with variable scope
2 parents d1f8aba + 6617864 commit c195421

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/ITip/Broker.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,14 @@ protected function parseEventForOrganizer(VCalendar $calendar, array $eventInfo,
597597
unset($currentEvent->ORGANIZER['SCHEDULE-FORCE-SEND']);
598598
unset($currentEvent->ORGANIZER['SCHEDULE-STATUS']);
599599

600-
foreach ($currentEvent->ATTENDEE as $attendee) {
601-
unset($attendee['SCHEDULE-FORCE-SEND']);
602-
unset($attendee['SCHEDULE-STATUS']);
600+
foreach ($currentEvent->ATTENDEE as $currentEventAttendee) {
601+
unset($currentEventAttendee['SCHEDULE-FORCE-SEND']);
602+
unset($currentEventAttendee['SCHEDULE-STATUS']);
603603

604604
// We're adding PARTSTAT=NEEDS-ACTION to ensure that
605605
// iOS shows an "Inbox Item"
606-
if (!isset($attendee['PARTSTAT'])) {
607-
$attendee['PARTSTAT'] = 'NEEDS-ACTION';
606+
if (!isset($currentEventAttendee['PARTSTAT'])) {
607+
$currentEventAttendee['PARTSTAT'] = 'NEEDS-ACTION';
608608
}
609609
}
610610
}

0 commit comments

Comments
 (0)