Skip to content
Snippets Groups Projects
Commit c47ca197 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

cleanup and fix notice warnings

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1308 44740490-163a-0410-bde0-09ae8108e29a
parent 1d319058
No related branches found
No related tags found
No related merge requests found
<?php <?php
$this->data['header'] = 'SimpleSAMLphp Statistics'; $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.js"></script>';
$this->data['head'] .= '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'resources/jquery-ui.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" />'; $this->data['head'] .= '<link rel="stylesheet" media="screen" type="text/css" href="/' . $this->data['baseurlpath'] . 'resources/uitheme/jquery-ui-themeroller.css" />';
......
...@@ -92,7 +92,8 @@ if (isset($_REQUEST['d'])) { ...@@ -92,7 +92,8 @@ if (isset($_REQUEST['d'])) {
$maxvalue = 0; $maxvalue = 0;
$maxvaluetime = 0; $maxvaluetime = 0;
$debugdata = array(); $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) { if ($res[$delimiter] > $maxvalue) {
$maxvaluetime = $datehandler->prettyDateSlot($slot, $slotsize, $dateformat_intra); $maxvaluetime = $datehandler->prettyDateSlot($slot, $slotsize, $dateformat_intra);
} }
...@@ -167,6 +168,3 @@ $t->data['summaryDataset'] = $summaryDataset; ...@@ -167,6 +168,3 @@ $t->data['summaryDataset'] = $summaryDataset;
$t->data['availdelimiters'] = array_keys($availdelimiters); $t->data['availdelimiters'] = array_keys($availdelimiters);
$t->show(); $t->show();
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment