diff --git a/schedule/parse.php b/schedule/parse.php index 1c37e00..766ec17 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -280,12 +280,14 @@ function parseData($config, $data) { $spk = []; foreach ($event['participant_user_ids'] as $uid) { - if (in_array($uid, $config['hidden_speakers']) || empty($data['speakers'][$uid])) { + if (in_array($uid, $config['hidden_speakers']) || empty($data['speakers'][$uid])) { continue; } - $name = $data['speakers'][$uid]['first_name'] . ' ' . $data['speakers'][$uid]['last_name']; - $spk[] = '' . $name . ''; + $speaker = $data['speakers'][$uid]; + $name = $speaker['first_name'] . ' ' . $speaker['last_name']; + $organisation = empty($speaker['organisation']) ? '' : (' /' . $speaker['organisation'] . '/'); + $spk[] = '' . $name . '' . $organisation; } $speakers = implode (', ', $spk);