]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix base number of returned results
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 9 Aug 2022 07:40:37 +0000 (09:40 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 9 Aug 2022 11:53:20 +0000 (13:53 +0200)
The intent was to always search for at least 10 results.

Improves on #882.

lib-php/Geocode.php

index 9e3b0b92fbc47638dd4ff4227a45b9617a9c2a6c..ec1fa81da07fdae7b0891608d1fc66de1adfe40b 100644 (file)
@@ -103,7 +103,7 @@ class Geocode
         }
 
         $this->iFinalLimit = $iLimit;
         }
 
         $this->iFinalLimit = $iLimit;
-        $this->iLimit = $iLimit + min($iLimit, 10);
+        $this->iLimit = $iLimit + max($iLimit, 10);
     }
 
     public function setFeatureType($sFeatureType)
     }
 
     public function setFeatureType($sFeatureType)