]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #2511 from lonvia/fix-combination-error-needs-address
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 6 Nov 2021 11:11:55 +0000 (12:11 +0100)
committerGitHub <noreply@github.com>
Sat, 6 Nov 2021 11:11:55 +0000 (12:11 +0100)
Fix boolean combination of NeedsAddress flag

lib-php/SearchDescription.php

index fcb87d433a606a114f9ae27f2dbcde1989cb34df..e13a0e9daccd2b511b8c0dcb3664e05776643e44 100644 (file)
@@ -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;