X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/cdd129de702dda5608a07ea81b4ffa8ddaeb477a..0213643ebcba068561691bfbe366fed075d0d3d1:/website/search.php?ds=inline diff --git a/website/search.php b/website/search.php index f1ddbbe5..8e0bb6f6 100755 --- a/website/search.php +++ b/website/search.php @@ -151,7 +151,7 @@ } exit; } - $oGeocode->setIncludePolygonAsText($bAsPoints); + $oGeocode->setIncludePolygonAsPoints($bAsPoints); $oGeocode->setIncludePolygonAsText($bAsText); $oGeocode->setIncludePolygonAsGeoJSON($bAsGeoJSON); $oGeocode->setIncludePolygonAsKML($bAsKML); @@ -187,7 +187,7 @@ $bAsText = $oGeocode->getIncludePolygonAsText(); $sQuery = $oGeocode->getQueryString(); $sViewBox = $oGeocode->getViewBoxString(); - $bShowPolygons = (isset($_GET['polygon']) && isset($_GET['polygon'])); + $bShowPolygons = (isset($_GET['polygon']) && $_GET['polygon']); $aExcludePlaceIDs = $oGeocode->getExcludedPlaceIDs(); $sMoreURL = CONST_Website_BaseURL.'search?format='.urlencode($sOutputFormat).'&exclude_place_ids='.join(',',$oGeocode->getExcludedPlaceIDs());