]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-xml.php
more isset checks for PHP variables
[nominatim.git] / lib / template / address-xml.php
index 450f8fb567d8bc594f242ef8767b89ba9f110d0c..fcd90b85e63cc6b9ea55c2accde01763244bebfa 100644 (file)
@@ -8,13 +8,13 @@
 
        echo "<reversegeocode";
        echo " timestamp='".date(DATE_RFC822)."'";
-       echo " attribution='Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.'";
+       echo " attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright'";
        echo " querystring='".htmlspecialchars($_SERVER['QUERY_STRING'], ENT_QUOTES)."'";
        echo ">\n";
 
        if (!sizeof($aPlace))
        {
-               if ($sError)
+               if (isset($sError))
                        echo "<error>$sError</error>";
                else
                        echo "<error>Unable to geocode</error>";