From cc574cdb3950cf3e84c5256eb179c0379b27ad2e Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Mon, 16 Dec 2019 11:46:07 +0100 Subject: [PATCH] fix pagination in meta monitor view --- pandora_console/operation/agentes/status_monitor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 03fb79d168..05acbe5430 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1709,7 +1709,9 @@ if (!empty($result)) { html_print_table($table); - ui_pagination($count, false, $offset, 0, false, 'offset', true, 'pagination-bottom'); + if ($count_modules > $config['block_size']) { + ui_pagination($count_modules, false, $offset, 0, false, 'offset', true, 'pagination-bottom'); + } } else { if ($first_interaction) { ui_print_info_message(['no_close' => true, 'message' => __('This group doesn\'t have any monitor')]);