]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-json.php
update admin_level when modifying place
[nominatim.git] / lib / template / address-json.php
index c05bce294e1837279815fd04ca69bf8c43787f30..0a1d074a3540e8f68aa0d323fbeff98307e1e0f0 100644 (file)
@@ -3,7 +3,7 @@
 
        if (!sizeof($aPlace))
        {
-               if ($sError)
+               if (isset($sError))
                        $aFilteredPlaces['error'] = $sError;
                else
                        $aFilteredPlaces['error'] = 'Unable to geocode';