]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
fix uninitialised rank variable when regrouping searches
[nominatim.git] / lib / Geocode.php
index 4072aae2f5b0db27bf39bec37961b9bc853b1772..496a3c6be48274154b796d2da99a251aac77acd2 100644 (file)
@@ -457,6 +457,7 @@ class Geocode
                 continue;
             }
 
+            $iRank = $oSearch->getRank();
             if (!isset($aGroupedSearches[$iRank])) {
                 $aGroupedSearches[$iRank] = array();
             }