forked from hans/Nominatim
fix combination of NeedsAddress flag
When dealing with multiple partial terms, only keep the flag, when all partial terms are so frequent as to need an address. Fixes #2510.
This commit is contained in:
@@ -257,7 +257,7 @@ class SearchDescription
|
||||
if (empty($this->aName)) {
|
||||
$this->bNameNeedsAddress = $bNeedsAddress;
|
||||
} else {
|
||||
$this->bNameNeedsAddress |= $bNeedsAddress;
|
||||
$this->bNameNeedsAddress &= $bNeedsAddress;
|
||||
}
|
||||
if ($bSearchable) {
|
||||
$this->aName[$iId] = $iId;
|
||||
|
||||
Reference in New Issue
Block a user