]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
introduce chksql function for website code and move other fail functions
[nominatim.git] / website / reverse.php
index c6c7305fe9d90ae88664f8f9b44d3d30ce94ffe2..17b8a2ca08178a6eb1c15d3f69fce3fabedcafff 100755 (executable)
 
        if ($sOutputFormat=='html')
        {
-               $sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '2 minutes'::interval,'YYYY/MM/DD HH24:MI')||' GMT' from import_status limit 1");
+               $sDataDate = chksql($oDB->getOne("select TO_CHAR(lastimportdate - '2 minutes'::interval,'YYYY/MM/DD HH24:MI')||' GMT' from import_status limit 1"));
                $sTileURL = CONST_Map_Tile_URL;
                $sTileAttribution = CONST_Map_Tile_Attribution;
        }