Skip slots without matching event ID
This commit is contained in:
parent
25379fab15
commit
4eddfb2d5a
|
@ -46,6 +46,11 @@ foreach ($data['slots'] as $slot_id => $slot) {
|
|||
}
|
||||
|
||||
$eid = &$slot['event_id'];
|
||||
|
||||
if (!array_key_exists($eid, $data['events'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$event = &$data['events'][$eid];
|
||||
|
||||
if (is_null($eid)) {
|
||||
|
|
Loading…
Reference in New Issue