]> 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 4eed52ae122490f8f8d0abbf2bdb6c16d15d12a0..70e9e46bf9cc3dff34c9046aa16ed6d396d32b90 100644 (file)
@@ -4,7 +4,7 @@
        {
                $aPlace = array(
                                'place_id'=>$aPointDetails['place_id'],
-                               'licence'=>"Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.",
+                               'licence'=>"Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
                        );
 
                $sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':'')));
@@ -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'];
                }