X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/500c61685b16fd1d51e7b5f4738c788a9d00eab4..27af9b102c2d6167b9025d594f8cb75e4dd76a03:/lib-php/website/polygons.php diff --git a/lib-php/website/polygons.php b/lib-php/website/polygons.php index 88b48ae8..c1382dbf 100644 --- a/lib-php/website/polygons.php +++ b/lib-php/website/polygons.php @@ -30,8 +30,12 @@ while ($iTotalBroken && empty($aPolygons)) { $iDays++; } - if ($bReduced) $aWhere[] = "errormessage like 'Area reduced%'"; - if ($sClass) $sWhere[] = "class = '".pg_escape_string($sClass)."'"; + if ($bReduced) { + $aWhere[] = "errormessage like 'Area reduced%'"; + } + if ($sClass) { + $sWhere[] = "class = '".pg_escape_string($sClass)."'"; + } if (!empty($aWhere)) { $sSQL .= ' WHERE '.join(' and ', $aWhere);