check for correct array for country codes

fixes trac ticket 5427
This commit is contained in:
Sarah Hoffmann 2016-10-04 20:32:22 +02:00
parent 8a2e401025
commit 42d473968f
2 changed files with 9 additions and 1 deletions

View File

@ -252,7 +252,7 @@ class Geocode
$aCountries[] = strtolower($sCountryCode);
}
}
if (isset($aCountryCodes))
if (isset($aCountries))
$this->aCountryCodes = $aCountries;
}

View File

@ -207,3 +207,11 @@ Feature: API regression tests
| osm_type | osm_id | latlon
| node | 257363453 | 35.8404121,128.5586643 +-100m
Scenario: trac #5427
Given the request parameters
| countrycodes |
| DE |
When sending json search query "12345" with address
Then result addresses contain
| country_code |
| de |