X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6b65b9086b4434c6cc69bf4c8a3f778af5b91115..1d836f6c5ccee069fd41137af1c0fef8d65f48f9:/lib/template/address-jsonv2.php diff --git a/lib/template/address-jsonv2.php b/lib/template/address-jsonv2.php index 4e751a0d..00f8750d 100644 --- a/lib/template/address-jsonv2.php +++ b/lib/template/address-jsonv2.php @@ -3,7 +3,7 @@ if (!sizeof($aPlace)) { - if ($sError) + if (isset($sError)) $aFilteredPlaces['error'] = $sError; else $aFilteredPlaces['error'] = 'Unable to geocode';