X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bde251f2a244b87334528f0b01281f8bd96d1ebf..7c56f24c1f83e9d19c9df723bb86335598add902:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 671edde4..e1552a15 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -40,7 +40,7 @@ $aPlace['category'] = $aPointDetails['class']; $aPlace['type'] = $aPointDetails['type']; - if ($aPointDetails['icon']) + if (isset($aPointDetails['icon'])) { $aPlace['icon'] = $aPointDetails['icon']; }