]> git.openstreetmap.org Git - nominatim.git/commitdiff
searches for house numbers must have an address
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 26 Oct 2021 08:28:28 +0000 (10:28 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 26 Oct 2021 10:00:13 +0000 (12:00 +0200)
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;
     }