mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
always use brackets on if statements
This adds bracket around all one-line if statements that did not have them yet.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user