Skip to content

Commit 6617864

Browse files
kristoffermollerhojphil-davis
authored andcommitted
Fixed problem with variable scope
1 parent d1f8aba commit 6617864

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)