]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-json.php
fix some php warnings for cleaner output
[nominatim.git] / lib / template / search-json.php
index dd75ad871af0abfdd34c7db7e7339add0f9d2e51..70e9e46bf9cc3dff34c9046aa16ed6d396d32b90 100644 (file)
@@ -39,7 +39,7 @@
 
                $aPlace['class'] = $aPointDetails['class'];
                $aPlace['type'] = $aPointDetails['type'];
-               if ($aPointDetails['icon'])
+               if (isset($aPointDetails['icon']) && $aPointDetails['icon'])
                {
                        $aPlace['icon'] = $aPointDetails['icon'];
                }