]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix format error in polygon output
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 27 Aug 2012 21:17:17 +0000 (23:17 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 27 Aug 2012 21:57:16 +0000 (23:57 +0200)
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