X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2cc4c73b64b12fd351d6def17b58d28158002ff3..411f361fcb11824ca72dc61b85baeb32b91f474a:/lib/template/details-json.php?ds=inline diff --git a/lib/template/details-json.php b/lib/template/details-json.php index 9b4237c7..06554aba 100644 --- a/lib/template/details-json.php +++ b/lib/template/details-json.php @@ -26,7 +26,9 @@ $aPlaceDetails['calculated_importance'] = (float) $aPointDetails['calculated_imp $aPlaceDetails['extratags'] = $aPointDetails['aExtraTags']; $aPlaceDetails['calculated_wikipedia'] = $aPointDetails['wikipedia']; -$aPlaceDetails['icon'] = CONST_Website_BaseURL.'images/mapicons/'.$aPointDetails['icon'].'.n.32.png'; +if ($aPointDetails['icon']) { + $aPlaceDetails['icon'] = CONST_Website_BaseURL.'images/mapicons/'.$aPointDetails['icon'].'.n.32.png'; +} $aPlaceDetails['rank_address'] = (int) $aPointDetails['rank_address']; $aPlaceDetails['rank_search'] = (int) $aPointDetails['rank_search'];