mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Merge pull request #2511 from lonvia/fix-combination-error-needs-address
Fix boolean combination of NeedsAddress flag
This commit is contained in:
@@ -257,7 +257,7 @@ class SearchDescription
|
|||||||
if (empty($this->aName)) {
|
if (empty($this->aName)) {
|
||||||
$this->bNameNeedsAddress = $bNeedsAddress;
|
$this->bNameNeedsAddress = $bNeedsAddress;
|
||||||
} else {
|
} else {
|
||||||
$this->bNameNeedsAddress |= $bNeedsAddress;
|
$this->bNameNeedsAddress &= $bNeedsAddress;
|
||||||
}
|
}
|
||||||
if ($bSearchable) {
|
if ($bSearchable) {
|
||||||
$this->aName[$iId] = $iId;
|
$this->aName[$iId] = $iId;
|
||||||
|
|||||||
Reference in New Issue
Block a user