]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jun 2022 18:18:22 +0000 (20:18 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jun 2022 18:18:22 +0000 (20:18 +0200)
lib-php/Geocode.php

index a12983b15acf331a87e9952c44d5273a1b25705e..85d871f0d039f1b37072901f1ae09ae0650d9c64 100644 (file)
@@ -843,7 +843,9 @@ class Geocode
                 $aResult['importance'] = 0.001;
                 $aResult['foundorder'] = $aResult['addressimportance'];
             } else {
-                $aResult['importance'] = max(0.001, $aResult['importance']);
+                if ($aResult['importance'] == 0) {
+                    $aResult['importance'] = 0.0001;
+                }
                 $aResult['importance'] *= $this->viewboxImportanceFactor(
                     $aResult['lon'],
                     $aResult['lat']