From 184bfc722d68ce3d961f4cbde729e2b70cf52f1d Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 19 Oct 2017 14:16:39 +0200 Subject: [PATCH] fix #3812 - some brocken parts in the display of events (default template) --- include/event.php | 8 +++++--- view/templates/event_stream_item.tpl | 10 ++++++---- view/theme/frio/templates/event_stream_item.tpl | 4 ++++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/include/event.php b/include/event.php index 88e559a7f3..229aa8cd46 100644 --- a/include/event.php +++ b/include/event.php @@ -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'] = '