From 2bcc01c9ba2ce13e86917d24e4d71163e41b5f3f Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 9 Aug 2017 11:33:12 +0200 Subject: [PATCH] Fixed time range with user no admin --- .../operation/agentes/interface_traffic_graph_win.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/agentes/interface_traffic_graph_win.php b/pandora_console/operation/agentes/interface_traffic_graph_win.php index 5dce55b101..8d676b4340 100644 --- a/pandora_console/operation/agentes/interface_traffic_graph_win.php +++ b/pandora_console/operation/agentes/interface_traffic_graph_win.php @@ -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"));