fix #3812 - some brocken parts in the display of events (default template)

This commit is contained in:
rabuzarus 2017-10-19 14:16:39 +02:00
parent 704aef67fb
commit 184bfc722d
3 changed files with 15 additions and 7 deletions

View file

@ -959,9 +959,11 @@ function format_event_item($item) {
// Format the event location.
$evloc = event_location2array($item['event-location']);
$location = array(
'name' => prepare_text($evloc['name'])
);
$location = array();
if (isset($evloc['name'])) {
$location['name'] = prepare_text($evloc['name']);
}
// Construct the map HTML.
if (isset($evloc['address'])) {
$location['map'] = '<div class="map">' . generate_named_map($evloc['address']) . '</div>';