From 0f379a28888d8c2289e4d4b486ef3454ef8a9f7b Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 20 Oct 2020 12:38:42 +0200 Subject: [PATCH] Fixed pagination counter --- pandora_console/extensions/module_groups.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index 76225c0751..50a0de4d78 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -86,7 +86,6 @@ function mainModuleGroups() ); $info = $tree_group->getArray(); $info = groupview_plain_groups($info); - $counter = count($info); $offset = get_parameter('offset', 0); $agent_group_search = get_parameter('agent_group_search', ''); $module_group_search = get_parameter('module_group_search', ''); @@ -134,6 +133,8 @@ function mainModuleGroups() $ids_group = -1; } + $counter = count($info); + $condition_critical = modules_get_state_condition(AGENT_MODULE_STATUS_CRITICAL_ALERT); $condition_warning = modules_get_state_condition(AGENT_MODULE_STATUS_WARNING_ALERT); $condition_unknown = modules_get_state_condition(AGENT_MODULE_STATUS_UNKNOWN);