]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix uninitialised rank variable when regrouping searches
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Oct 2017 21:17:47 +0000 (23:17 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Oct 2017 21:17:47 +0000 (23:17 +0200)
lib/Geocode.php

index 4072aae2f5b0db27bf39bec37961b9bc853b1772..496a3c6be48274154b796d2da99a251aac77acd2 100644 (file)
@@ -457,6 +457,7 @@ class Geocode
                 continue;
             }
 
                 continue;
             }
 
+            $iRank = $oSearch->getRank();
             if (!isset($aGroupedSearches[$iRank])) {
                 $aGroupedSearches[$iRank] = array();
             }
             if (!isset($aGroupedSearches[$iRank])) {
                 $aGroupedSearches[$iRank] = array();
             }