mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
Nominatim::DB support input variables, custom error messages
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user