Skip slots without matching event ID

This commit is contained in:
Vencislav Atanasov 2016-10-16 20:23:37 +03:00
parent 25379fab15
commit 4eddfb2d5a
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ foreach ($data['slots'] as $slot_id => $slot) {
} }
$eid = &$slot['event_id']; $eid = &$slot['event_id'];
if (!array_key_exists($eid, $data['events'])) {
continue;
}
$event = &$data['events'][$eid]; $event = &$data['events'][$eid];
if (is_null($eid)) { if (is_null($eid)) {