From 2fe85510a72cfb0f6d34df794561cbf5ec8ff16d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 22 May 2015 12:31:33 +0200 Subject: [PATCH] Fixed PHP Warnings. --- pandora_console/include/functions_events.php | 3 ++- pandora_console/operation/agentes/group_view.php | 1 + pandora_console/operation/agentes/tactical.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 4fa1f53a4f..53dbe452fe 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -854,10 +854,11 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret $returned = ui_print_info_message ( __('No events'),'',true ); return $returned; } - else + else echo ui_print_info_message ( __('No events') ); } else { + $table = new stdClass(); $table->id = 'latest_events_table'; $table->cellpadding = 0; $table->cellspacing = 0; diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index 3a5b8bd20a..909bcff12f 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -82,6 +82,7 @@ $total_agentes = 0; $monitor_ok = 0; $monitor_warning = 0; $monitor_critical = 0; +$monitor_unknown = 0; $agents_unknown = 0; foreach ($result_groups as $data) { $total_agentes += $data["_total_agents_"]; diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index 895e6d3cb8..1e3786c721 100755 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -228,7 +228,7 @@ $acltags = tags_get_user_module_and_tags ($config['id_user'], $access = 'ER', $u if (!empty($acltags)) { $tags_condition = tags_get_acl_tags_event_condition($acltags, false, $user_strict); - + if (!empty($tags_condition)) { $events = events_print_event_table ("estado<>1 AND ($tags_condition)", 10, "100%",true,false,true); ui_toggle($events, __('Latest events')); @@ -243,7 +243,7 @@ if ($is_admin) { require($config['homedir'] . '/godmode/servers/servers.build_table.php'); } -$out .= '
'; +$out = '
'; $out .= '
' . __('Event graph') .