]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-batch-json.php
make HTML validator happy with details page
[nominatim.git] / lib / template / search-batch-json.php
index 13c619525aa1f9c2618704c0ff2a2a62a074b322..ef2c143abf16ae9b440127f1f6397758062fad52 100644 (file)
@@ -6,6 +6,7 @@
 
        foreach($aBatchResults as $aSearchResults)
        {
 
        foreach($aBatchResults as $aSearchResults)
        {
+               if (!$aSearchResults) $aSearchResults = array();
                $aFilteredPlaces = array();
                foreach($aSearchResults as $iResNum => $aPointDetails)
                {
                $aFilteredPlaces = array();
                foreach($aSearchResults as $iResNum => $aPointDetails)
                {