]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/SearchDescription.php
searches for house numbers must have an address
[nominatim.git] / lib-php / SearchDescription.php
index 6eaf0d9af563f1a2bc04bce510b0acf8d942772b..fa622e62634c0d4c9c29c58bc70ba478f6012ca6 100644 (file)
@@ -236,7 +236,7 @@ class SearchDescription
     {
         $this->aName[$iId] = $iId;
         $this->bRareName = $bRareName;
-        $this->bNeedsAddress = false;
+        $this->bNameNeedsAddress = false;
     }
 
     /**
@@ -324,6 +324,7 @@ class SearchDescription
     {
         $this->aAddress = array_merge($this->aAddress, $this->aName);
         $this->bRareName = false;
+        $this->bNameNeedsAddress = true;
         $this->aName = array($iId => $iId);
         $this->iNamePhrase = -1;
     }