]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/SearchDescription.php
Merge pull request #2511 from lonvia/fix-combination-error-needs-address
[nominatim.git] / 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;