From: Hypolite Petovan Date: Mon, 31 May 2021 05:44:17 +0000 (-0400) Subject: [openstreetmap] Ensure location key is available in hook data X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7cad0140496e2338726f12eb3c60cc64ee219b8e;p=friendica-addons.git [openstreetmap] Ensure location key is available in hook data - Address https://github.com/friendica/friendica/issues/10169#issuecomment-835548421 --- 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'] = '