]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-json.php
also adapt uses of ClassTypes in website/
[nominatim.git] / lib / template / details-json.php
index d5338a05a1a58e23b388d4c56028c308ce8feea9..4dc65a5b0d3637e7c27294c0414ab37a2e9b261a 100644 (file)
@@ -26,7 +26,7 @@ $aPlaceDetails['calculated_importance'] = (float) $aPointDetails['calculated_imp
 
 $aPlaceDetails['extratags'] = $aPointDetails['aExtraTags'];
 $aPlaceDetails['calculated_wikipedia'] = $aPointDetails['wikipedia'];
-if ($aPointDetails['icon']) {
+if (isset($aPointDetails['icon'])) {
     $aPlaceDetails['icon'] = CONST_Website_BaseURL.'images/mapicons/'.$aPointDetails['icon'].'.n.32.png';
 }