Fixed PHP Warnings.

This commit is contained in:
mdtrooper 2015-05-22 12:31:33 +02:00
parent 5eb372a7ff
commit 2fe85510a7
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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_"];

View File

@ -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 .= '<table cellpadding=0 cellspacing=0 class="databox pies" style="margin-top:15px;" width=100%><tr><td>';
$out = '<table cellpadding=0 cellspacing=0 class="databox pies" style="margin-top:15px;" width=100%><tr><td>';
$out .= '<fieldset class="databox tactical_set">
<legend>' .
__('Event graph') .