From 7cad0140496e2338726f12eb3c60cc64ee219b8e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 31 May 2021 01:44:17 -0400 Subject: [PATCH] [openstreetmap] Ensure location key is available in hook data - Address https://github.com/friendica/friendica/issues/10169#issuecomment-835548421 --- openstreetmap/openstreetmap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php index 168d3d2f..08111a0c 100644 --- a/openstreetmap/openstreetmap.php +++ b/openstreetmap/openstreetmap.php @@ -164,7 +164,7 @@ function openstreetmap_generate_map(&$a, &$b) $cardlink .= '?mlat=' . $lat . '&mlon=' . $lon; } - $cardlink .= '#map=' . $zoom . '/' . $lat . '/' . $lon . '">' . ($b['location'] ? Strings::escapeHtml($b['location']) : DI::l10n()->t('View Larger')) . ''; + $cardlink .= '#map=' . $zoom . '/' . $lat . '/' . $lon . '">' . ($b['location'] ??0? Strings::escapeHtml($b['location']) : DI::l10n()->t('View Larger')) . ''; if (empty($b['mode'])) { $b['html'] = '