From: Sarah Hoffmann Date: Fri, 6 Oct 2017 20:01:52 +0000 (+0200) Subject: fix variable names X-Git-Tag: v3.1.0~50 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/73e737d7756dd900fc5b797561ec0a66b0d3272e fix variable names --- diff --git a/lib/Geocode.php b/lib/Geocode.php index f282e265..fbb1b4e0 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -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;