mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:10:12 +00:00
fix #3812 - some brocken parts in the display of events (default template)
This commit is contained in:
parent
704aef67fb
commit
184bfc722d
3 changed files with 15 additions and 7 deletions
|
@ -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>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue