From: Sarah Hoffmann Date: Tue, 24 Oct 2017 21:17:47 +0000 (+0200) Subject: fix uninitialised rank variable when regrouping searches X-Git-Tag: v3.1.0~33 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/919b1b42fa1c2823bb7945d3988e3b67f1b006fb fix uninitialised rank variable when regrouping searches --- diff --git a/lib/Geocode.php b/lib/Geocode.php index 4072aae2..496a3c6b 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -457,6 +457,7 @@ class Geocode continue; } + $iRank = $oSearch->getRank(); if (!isset($aGroupedSearches[$iRank])) { $aGroupedSearches[$iRank] = array(); }