Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 79a273a

Browse files
committed
Bugfix: errors in log when user opens statistics for the fisrt time
1 parent 870d515 commit 79a273a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
[Fixed]
6+
- set default value of lastDays and tab in index.php: no error logs when user open statistics for the first time
57

68
## [v1.4.1]
79
[Fixed]

www/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
$session = SimpleSAML_Session::getSessionFromRequest();
88

99
$t = new SimpleSAML_XHTML_Template($config, 'proxystatistics:statistics-tpl.php');
10+
if(!isset($_POST['lastDays']) || !isset($_POST['tab'])) {
11+
$_POST['lastDays'] = 0;
12+
$_POST['tab'] = 1;
13+
}
1014
$t->data['lastDays'] = $_POST['lastDays'];
1115
$t->data['tab'] = $_POST['tab'];
1216
$t->show();

0 commit comments

Comments
 (0)