Skip to content
Snippets Groups Projects
Commit 79a273a1 authored by Dominik Baránek's avatar Dominik Baránek
Browse files

Bugfix: errors in log when user opens statistics for the fisrt time

parent 870d515b
No related branches found
No related tags found
1 merge request!8Bugfix: errors in log when user opens statistics for the fisrt time
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [Unreleased] ## [Unreleased]
[Fixed]
- set default value of lastDays and tab in index.php: no error logs when user open statistics for the first time
## [v1.4.1] ## [v1.4.1]
[Fixed] [Fixed]
......
...@@ -7,6 +7,10 @@ $config = SimpleSAML_Configuration::getInstance(); ...@@ -7,6 +7,10 @@ $config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getSessionFromRequest(); $session = SimpleSAML_Session::getSessionFromRequest();
$t = new SimpleSAML_XHTML_Template($config, 'proxystatistics:statistics-tpl.php'); $t = new SimpleSAML_XHTML_Template($config, 'proxystatistics:statistics-tpl.php');
if(!isset($_POST['lastDays']) || !isset($_POST['tab'])) {
$_POST['lastDays'] = 0;
$_POST['tab'] = 1;
}
$t->data['lastDays'] = $_POST['lastDays']; $t->data['lastDays'] = $_POST['lastDays'];
$t->data['tab'] = $_POST['tab']; $t->data['tab'] = $_POST['tab'];
$t->show(); $t->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment