X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c8c8471e737ff9344d98296cf6c238f9f659b3d4..e598e2ceed58f03942f12203611ccc2e20fec66d:/lib/template/search-html.php?ds=sidebyside
diff --git a/lib/template/search-html.php b/lib/template/search-html.php
index f66ee705..89e4800b 100644
--- a/lib/template/search-html.php
+++ b/lib/template/search-html.php
@@ -332,7 +332,7 @@ form{
Documentation | FAQ
-
Thank you for your problem report |
+ |
@@ -358,7 +358,7 @@ target="_blank">FAQ
echo ', '.$aResult['aBoundingBox'][1];
echo ', '.$aResult['aBoundingBox'][2];
echo ', '.$aResult['aBoundingBox'][3];
- echo ', '.javascript_renderData($aResult['aPolyPoints']);
+ if (isset($aResult['aPolyPoints'])) echo ', '.json_encode($aResult['aPolyPoints']);
echo ');\'>';
}
elseif (isset($aResult['zoom']))
@@ -370,7 +370,7 @@ target="_blank">FAQ
echo '';
}
- echo ($aResult['icon']?'
':'');
+ echo (isset($aResult['icon'])?'
':'');
echo '
'.$aResult['name'].'';
echo '
'.round($aResult['lat'],3).','.round($aResult['lat'],3).'';
echo '
'.$aResult['place_id'].'';
@@ -450,7 +450,7 @@ init();
echo ', '.$aResult['aBoundingBox'][1];
echo ', '.$aResult['aBoundingBox'][2];
echo ', '.$aResult['aBoundingBox'][3];
- echo ', '.javascript_renderData($aResult['aPolyPoints']);
+ if (isset($aResult['aPolyPoints'])) echo ', '.javascript_renderData($aResult['aPolyPoints']);
echo ');'."\n";
}
else