]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
fix format error in polygon output
[nominatim.git] / lib / template / search-html.php
index 9269672d7d16e857f4af3028c683615b0ba56d17..7878540e7ef7c05e5dbce40ae488d75f7ec77815 100644 (file)
@@ -450,7 +450,11 @@ init();
                        echo ', '.$aResult['aBoundingBox'][1];
                        echo ', '.$aResult['aBoundingBox'][2];
                        echo ', '.$aResult['aBoundingBox'][3];
-                       if (isset($aResult['aPolyPoints'])) echo ', '.javascript_renderData($aResult['aPolyPoints']);
+                       if (isset($aResult['aPolyPoints']))
+                       {
+                               echo ', ';
+                               echo javascript_renderData($aResult['aPolyPoints']);
+                       }
                        echo ');'."\n";
                }
                else