- if (!isset($_GET['days'])) $_GET['days'] = 1;
- $bReduced = false;
- if (isset($_GET['reduced'])) $bReduced = true;
- $sClass = false;
- if (isset($_GET['class'])) $sClass = $_GET['class'];
+
+ $sOutputFormat = 'html';
+ $iDays = getParamInt('days', 1);
+ $bReduced = getParamBool('reduced', false);
+ $sClass = getParamString('class', false);
+
+ $iTotalBroken = (int) $oDB->getOne('select count(*) from import_polygon_error');