diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 21061981ec..7cbcba5c39 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -2251,11 +2251,12 @@ function reporting_network_interfaces_report($report, $content, $network_interfaces_by_agents = agents_get_network_interfaces(false, $filter); if (empty($network_interfaces_by_agents)) { - $return['error'] = 1; + $return['failed'] = + __('The group has no agents or none of the agents has any network interface'); $return['data'] = array(); } else { - $return['error'] = 0; + $return['failed'] = null; $return['data'] = array(); foreach ($network_interfaces_by_agents as $agent_id => $agent) { diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 3c2fce6db9..3feb2fe9a4 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -1218,11 +1218,10 @@ function reporting_html_group_configuration($table, $item) { function reporting_html_network_interfaces_report($table, $item) { - if ($item['error']) { + if (!empty($item['failed'])) { $table->colspan['interfaces']['cell'] = 3; $table->cellstyle['interfaces']['cell'] = 'text-align: left;'; - $table->data['interfaces']['cell'] = - __('The group has no agents or none of the agents has any network interface'); + $table->data['interfaces']['cell'] = $item['failed']; } else {