]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
return a marginally better error message when query string is not in UTF-8,
[nominatim.git] / lib / template / search-xml.php
index b15c9a2efb7dc5abf5e90cd6e56eef663bb2bc1a..6e48be4c2ce3c3ae7a004cf6838b5d5f03e5ac1b 100644 (file)
@@ -42,7 +42,7 @@
                        echo ','.$aResult['aBoundingBox'][3];\r
                        echo '"';\r
 \r
-                       if ($bShowPolygons)\r
+                       if ($bShowPolygons && isset($aResult['aPolyPoints']))\r
                        {\r
                                echo ' polygonpoints=\'';\r
                                echo javascript_renderData($aResult['aPolyPoints']);\r