From 0834c196fe848554c63c86d7cbc6a9679ea257c6 Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Fri, 1 Nov 2019 08:28:12 +0200 Subject: [PATCH] schedule: do not repeat multi-slot talks --- schedule/parse.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schedule/parse.php b/schedule/parse.php index 328f076..ecbc59f 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -223,6 +223,8 @@ function parseData($config, $data) { $hall_ids = []; $now = time(); + $known_events = array(); + foreach ($events as $slot_index => $events_data) { $columns = []; @@ -280,10 +282,7 @@ function parseData($config, $data) { } $content = '' . htmlspecialchars($title) . '
' . $speakers; - // these are done by $eid, as otherwise we get some talks more than once (for example the lunch) - // TODO: fix this, it's broken - - if (!in_array($data['events'][$event_info['event_id']]['track_id'], $config['hidden_language_tracks'])) { + if (!in_array($data['events'][$event_info['event_id']]['track_id'], $config['hidden_language_tracks']) && !isset($known_events[$eid])) { $fulltalks .= '
'; // We don't want '()' when we don't have a speaker name @@ -292,6 +291,7 @@ function parseData($config, $data) { $fulltalks .= '

' . $event['abstract'] . '

'; $fulltalks .= $fullfb; $fulltalks .= '
'; + $known_events[$eid] = $eid; } if ($eid === $lastEventId) {