]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 9 Aug 2022 18:09:10 +0000 (20:09 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 9 Aug 2022 18:09:10 +0000 (20:09 +0200)
1  2 
lib-php/Geocode.php

diff --combined lib-php/Geocode.php
index 978ca679010ec5b9c6e5c166d2507ed3916865b4,ec1fa81da07fdae7b0891608d1fc66de1adfe40b..cd8b6edd860249f2007de47b763d36bcfe698a65
@@@ -103,7 -103,7 +103,7 @@@ class Geocod
          }
  
          $this->iFinalLimit = $iLimit;
-         $this->iLimit = $iLimit + min($iLimit, 10);
+         $this->iLimit = $iLimit + max($iLimit, 10);
      }
  
      public function setFeatureType($sFeatureType)
                          }
                      }
  
 -                    if ($iQueryLoop > 20) {
 +                    if ($iQueryLoop > 30) {
                          break;
                      }
                  }
                      $aResults = $tempIDs;
                  }
  
 -                if (!empty($aResults) || $iGroupLoop > 4 || $iQueryLoop > 30) {
 +                if (!empty($aResults) || $iGroupLoop > 6 || $iQueryLoop > 40) {
                      break;
                  }
              }