diff --git a/modules/statistics/templates/statistics-tpl.php b/modules/statistics/templates/statistics-tpl.php index aad0fdc5aec67079e4172ca091bcaee7075cfced..9fa4a51f1e2dde6f47ff92b8ef06beb2f75ac3c3 100644 --- a/modules/statistics/templates/statistics-tpl.php +++ b/modules/statistics/templates/statistics-tpl.php @@ -1,15 +1,6 @@ <?php $this->data['header'] = 'SimpleSAMLphp Statistics'; - -/* -echo '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/js/tabs/addclasskillclass.js"></script>'; -echo '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/js/tabs/attachevent.js"></script>'; -echo '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/js/tabs/addcss.js"></script>'; -echo '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/js/tabs/tabtastic.js"></script>'; -*/ - - $this->data['head'] = '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/jquery.js"></script>'; $this->data['head'] .= '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/jquery-ui.js"></script>'; $this->data['head'] .= '<link rel="stylesheet" media="screen" type="text/css" href="/' . $this->data['baseurlpath'] . 'resources/uitheme/jquery-ui-themeroller.css" />'; diff --git a/modules/statistics/www/showstats.php b/modules/statistics/www/showstats.php index 76f8e358d66c6a44047c9fc572aed323517fb0bf..bf8327caa522eb64abc339b1e84b14ba8e07c90b 100644 --- a/modules/statistics/www/showstats.php +++ b/modules/statistics/www/showstats.php @@ -92,7 +92,8 @@ if (isset($_REQUEST['d'])) { $maxvalue = 0; $maxvaluetime = 0; $debugdata = array(); -foreach($results AS $slot => $res) { +foreach($results AS $slot => &$res) { + if (!array_key_exists($delimiter, $res)) $res[$delimiter] = 0; if ($res[$delimiter] > $maxvalue) { $maxvaluetime = $datehandler->prettyDateSlot($slot, $slotsize, $dateformat_intra); } @@ -167,6 +168,3 @@ $t->data['summaryDataset'] = $summaryDataset; $t->data['availdelimiters'] = array_keys($availdelimiters); $t->show(); - - -?> \ No newline at end of file