Skip to content
Snippets Groups Projects
Unverified Commit 9c562fc6 authored by Pavel Vyskočil's avatar Pavel Vyskočil Committed by GitHub
Browse files

Merge pull request #8 from BaranekD/bugfix

Bugfix: errors in log when user opens statistics for the fisrt time
parents 870d515b 79a273a1
Branches
Tags
No related merge requests found
......@@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file.
## [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]
[Fixed]
......
......@@ -7,6 +7,10 @@ $config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getSessionFromRequest();
$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['tab'] = $_POST['tab'];
$t->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment