]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-jsonv2.php
expose 'importance' value of place in xml/json/jsonv2 output
[nominatim.git] / lib / template / address-jsonv2.php
index 4e751a0d4b458ba4f7cff9fbe7fe592863c92276..00f8750db3f97430f4975707a1ec6421762be796 100644 (file)
@@ -3,7 +3,7 @@
 
        if (!sizeof($aPlace))
        {
-               if ($sError)
+               if (isset($sError))
                        $aFilteredPlaces['error'] = $sError;
                else
                        $aFilteredPlaces['error'] = 'Unable to geocode';