From: Sarah Hoffmann Date: Sat, 6 Nov 2021 11:11:55 +0000 (+0100) Subject: Merge pull request #2511 from lonvia/fix-combination-error-needs-address X-Git-Tag: v4.0.1~6 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/fd4ba3989ea8ac651d60c26829d01677bd14dd2d?hp=d479a0585d6f1a661d70bfd7d8b6e374702a0f52 Merge pull request #2511 from lonvia/fix-combination-error-needs-address Fix boolean combination of NeedsAddress flag --- diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index fcb87d43..e13a0e9d 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -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;