fix syntax error for route boxes

This commit is contained in:
Sarah Hoffmann
2016-10-09 21:41:23 +02:00
parent f5641037cf
commit fb51d51582

View File

@@ -162,7 +162,7 @@ class Geocode
$this->sViewboxCentreSQL = "ST_SetSRID('LINESTRING(";
$sSep = '';
foreach ($this->aRoutePoints as $aPoint) {
foreach ($aRoutePoints as $aPoint) {
$fPoint = (float)$aPoint;
$this->sViewboxCentreSQL .= $sSep.$fPoint;
$sSep = ($sSep == ' ') ? ',' : ' ';