X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/07628dc05daf0345fab3307601f05186ba863456..348a3082c926bc6f8d9a2b5ba9341a9bae338ab6:/website/deletable.php?ds=sidebyside diff --git a/website/deletable.php b/website/deletable.php index 5d6ee15d..95a2ec00 100755 --- a/website/deletable.php +++ b/website/deletable.php @@ -1,6 +1,8 @@ 'name' as name, i.* from placex, import_polygon_delete i where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type and placex.class = i.class and placex.type = i.type"; - $aPolygons = $oDB->getAll($sSQL); - if (PEAR::isError($aPolygons)) + $aPolygons = chksql($oDB->getAll($sSQL), + "Could not get list of deleted OSM elements."); + + if (CONST_DEBUG) { - failInternalError("Could not get list of deleted OSM elements.", $sSQL, $aPolygons); + var_dump($aPolygons); + exit; } - -//var_dump($aPolygons); ?> @@ -65,6 +68,7 @@ table td { "; //var_dump($aPolygons[0]); foreach($aPolygons[0] as $sCol => $sVal) @@ -80,11 +84,10 @@ table td { switch($sCol) { case 'osm_id': - $sOSMType = ($aRow['osm_type'] == 'N'?'node':($aRow['osm_type'] == 'W'?'way':($aRow['osm_type'] == 'R'?'relation':''))); - echo ''; + echo ''; break; case 'place_id': - echo ''; + echo ''; break; default: echo "";
'.$sVal.''.osmLink($aRow).''.$sVal.''.detailsLink($aRow).'".($sVal?$sVal:' ')."