From: Sarah Hoffmann Date: Fri, 10 Jun 2016 21:58:50 +0000 (+0200) Subject: polygons.php: print total number of broken polygons X-Git-Tag: v3.0.0~161 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/aa9fff919900caafb276630b8ca4f1c1c598ab1c?ds=inline polygons.php: print total number of broken polygons --- diff --git a/website/polygons.php b/website/polygons.php index 3c98bdbc..b9ce249d 100755 --- a/website/polygons.php +++ b/website/polygons.php @@ -13,8 +13,10 @@ $sClass = false; if (isset($_GET['class'])) $sClass = $_GET['class']; + $iTotalBroken = (int) $oDB->getOne('select count(*) from import_polygon_error'); + $aPolygons = array(); - while(!sizeof($aPolygons)) + while($iTotalBroken && !sizeof($aPolygons)) { $sSQL = 'select osm_type as "type",osm_id as "id",class as "key",type as "value",name->\'name\' as "name",'; $sSQL .= 'country_code as "country",errormessage as "error message",updated'; @@ -84,6 +86,7 @@ table td { Total number of broken polygons: $iTotalBroken

"; echo ""; echo ""; //var_dump($aPolygons[0]);