From: Sarah Hoffmann Date: Tue, 9 Aug 2022 07:40:37 +0000 (+0200) Subject: fix base number of returned results X-Git-Tag: v4.2.0~38^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/e0c184e0971dacdb37c6301638f810d5773fccba fix base number of returned results The intent was to always search for at least 10 results. Improves on #882. --- diff --git a/lib-php/Geocode.php b/lib-php/Geocode.php index 9e3b0b92..ec1fa81d 100644 --- a/lib-php/Geocode.php +++ b/lib-php/Geocode.php @@ -103,7 +103,7 @@ class Geocode } $this->iFinalLimit = $iLimit; - $this->iLimit = $iLimit + min($iLimit, 10); + $this->iLimit = $iLimit + max($iLimit, 10); } public function setFeatureType($sFeatureType)