]> git.openstreetmap.org Git - nominatim.git/commitdiff
Test for polygon param correctly
authorBrian Quinion <brian.quinion@mapquest.com>
Mon, 2 Sep 2013 13:10:00 +0000 (14:10 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Fri, 6 Sep 2013 08:47:46 +0000 (09:47 +0100)
website/search.php

index f1ddbbe5d8f9f691cd9dfdb90768943843bb0c2f..22a1c7c0605e7713fb3834d2fe6f4515de7ffad0 100755 (executable)
        $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());