From e0c184e0971dacdb37c6301638f810d5773fccba Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 9 Aug 2022 09:40:37 +0200 Subject: [PATCH] fix base number of returned results The intent was to always search for at least 10 results. Improves on #882. --- lib-php/Geocode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5