From 56cb6f1034b36dca0cd91bc51c491bb2fe5809ef Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 2 Aug 2024 16:02:29 +0000 Subject: streamline location rendering --- include/conversation.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index e4b39d5b1..b3ba96a82 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1467,14 +1467,18 @@ function render_location_default($item) { $location = $item['location']; $coord = $item['coord']; - if($coord) { + if ($coord) { if($location) - $location .= ' (' . $coord . ')'; + $location .= ' (' . $coord . ')'; else - $location = '' . $coord . ''; + $location = $coord; } - return $location; + if (!$location) { + return ''; + } + + return ''; } -- cgit v1.2.3