Skip to content

Commit e42d613

Browse files
committed
fix: check for an array before using array_key_exists
1 parent 7bb391c commit e42d613

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ITip/Broker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ protected function parseEventForAttendee(VCalendar $calendar, array $eventInfo,
648648
return [];
649649
}
650650

651-
$oldInstances = array_key_exists('instances', $oldEventInfo['attendees'][$attendee]) ?
651+
$oldInstances = is_array($oldEventInfo['attendees'][$attendee]) && array_key_exists('instances', $oldEventInfo['attendees'][$attendee]) ?
652652
$oldEventInfo['attendees'][$attendee]['instances'] :
653653
[];
654654

0 commit comments

Comments
 (0)