X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/760807c5e04c427d8df616991b18c78f72a10b04..f78d094483da1c54ff51177cafa378406636b433:/lib/SearchDescription.php diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index e9495852..edf4d059 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -247,7 +247,10 @@ class SearchDescription $oSearch->iSearchRank++; } // also must not appear in the middle of the address - if (sizeof($this->aAddress) || sizeof($this->aAddressNonSearch)) { + if (sizeof($this->aAddress) + || sizeof($this->aAddressNonSearch) + || $this->sPostcode + ) { $oSearch->iSearchRank++; } $aNewSearches[] = $oSearch; @@ -462,7 +465,7 @@ class SearchDescription if ($aFilteredPlaceIDs) { $aNewResults = array(); foreach ($aFilteredPlaceIDs as $iPlaceId) { - $aNewResults[$iPlaceId] = $aResults[$iPLaceId]; + $aNewResults[$iPlaceId] = $aResults[$iPlaceId]; } $aResults = $aNewResults; if (CONST_Debug) {