From e32e563447a7544a19f47c3093d9b17e75379432 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Fri, 6 Feb 2015 14:09:57 +0100 Subject: [PATCH] Minor changes on the module_graph function --- pandora_console/include/functions_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index bf95218192..df43df8f90 100755 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -7996,7 +7996,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) { return; } - $graph_seconds =(!empty($other) && isset($other['data'])) ? $other['data'] : 0; + $graph_seconds =(!empty($other) && isset($other['data'])) ? $other['data'] : 3600; // 1 hour by default if (is_nan($graph_seconds) || $graph_seconds <= 0) { // returnError('error_module_graph', __(''));