Fixed time range with user no admin

This commit is contained in:
Daniel Maya 2017-08-09 11:33:12 +02:00
parent 431cafc713
commit 2bcc01c9ba
1 changed files with 4 additions and 1 deletions

View File

@ -139,7 +139,10 @@ $interface_traffic_modules = array(
}
// Get input parameters
$period = (int) get_parameter('period', SECONDS_1HOUR);
$period = get_parameter ("period");
if ($period == "") {
$period = get_parameter ("period_select", SECONDS_1DAY);
}
$width = (int) get_parameter("width", 555);
$height = (int) get_parameter("height", 245);
$start_date = (string) get_parameter("start_date", date("Y-m-d"));