]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
fix variable names
[nominatim.git] / lib / Geocode.php
index f282e2656f2ebafeca651ed32307a0ee4534d451..fbb1b4e03f78df853a1e98c95915dd5e1512cb72 100644 (file)
@@ -859,7 +859,7 @@ class Geocode
                                         }
                                     }
 
-                                    if ((!$aCurrentSearch['sPostcode'] && !$aSearch['aAddress'] && !$aSearch['aAddressNonSearch'])
+                                    if ((!$aCurrentSearch['sPostcode'] && !$aCurrentSearch['aAddress'] && !$aCurrentSearch['aAddressNonSearch'])
                                         && (!sizeof($aCurrentSearch['aName']) || $aCurrentSearch['iNamePhrase'] == $iPhrase)) {
                                         $aSearch = $aCurrentSearch;
                                         $aSearch['iSearchRank'] += 1;