]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
Revert "experimental: disable early break from search loop"
[nominatim.git] / lib / Geocode.php
index af3262f9e7e866780be904fa7b870aed52471b33..7ab53d97812a5cbf640672e93f0e963f8c6f10eb 100644 (file)
@@ -770,7 +770,7 @@ class Geocode
                         }
                     }
 
-                    //if ($iQueryLoop > 20) break;
+                    if ($iQueryLoop > 20) break;
                 }
 
                 if (!empty($aResults)) {
@@ -842,8 +842,8 @@ class Geocode
                 }
 
                 if (!empty($aResults)) break;
-                //if ($iGroupLoop > 4) break;
-                //if ($iQueryLoop > 30) break;
+                if ($iGroupLoop > 4) break;
+                if ($iQueryLoop > 30) break;
             }
         } else {
             // Just interpret as a reverse geocode