mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Minor changes on the module_graph function
This commit is contained in:
parent
d3151557f7
commit
e32e563447
@ -7996,7 +7996,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) {
|
|||||||
return;
|
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) {
|
if (is_nan($graph_seconds) || $graph_seconds <= 0) {
|
||||||
// returnError('error_module_graph', __(''));
|
// returnError('error_module_graph', __(''));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user