From b3ed566d152fb7ae0ff2f750b338d47960961f4c Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Mon, 2 Sep 2013 14:10:00 +0100 Subject: [PATCH] Test for polygon param correctly --- website/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.5