From: Brian Quinion Date: Mon, 2 Sep 2013 13:10:00 +0000 (+0100) Subject: Test for polygon param correctly X-Git-Tag: v2.2.0~43 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/b3ed566d152fb7ae0ff2f750b338d47960961f4c Test for polygon param correctly --- diff --git a/website/search.php b/website/search.php index f1ddbbe5..22a1c7c0 100755 --- a/website/search.php +++ b/website/search.php @@ -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());