]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/polygons.php
Nominatim::DB support input variables, custom error messages
[nominatim.git] / website / polygons.php
index 00e043bdaf3cef6642a7dd6d01be6b3d011fa24f..a2264b18c46eaca0e12ad6299b060b062d58635b 100644 (file)
@@ -15,7 +15,7 @@ $sClass = $oParams->getString('class', false);
 $oDB = new Nominatim\DB();
 $oDB->connect();
 
-$iTotalBroken = (int) chksql($oDB->getOne('select count(*) from import_polygon_error'));
+$iTotalBroken = (int) $oDB->getOne('select count(*) from import_polygon_error');
 
 $aPolygons = array();
 while ($iTotalBroken && empty($aPolygons)) {
@@ -37,7 +37,7 @@ while ($iTotalBroken && empty($aPolygons)) {
     }
 
     $sSQL .= ' order by updated desc limit 1000';
-    $aPolygons = chksql($oDB->getAll($sSQL));
+    $aPolygons = $oDB->getAll($sSQL);
 }
 
 if (CONST_Debug) {