From ea6f96e96b6f13f387353efdf900559a1e02aeb5 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 6 Jun 2018 17:53:52 +0200 Subject: [PATCH] fixed minor error api --- 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 64f878a2ce..141cc2d499 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -10067,7 +10067,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) { SECONDS_1HOUR; // 1 hour by default $graph_threshold = - (!empty($other) && isset($other['data'][2])) + (!empty($other) && isset($other['data'][2]) && !$other['data'][2]) ? $other['data'][2] :