Fixed PHP Warnings.
This commit is contained in:
parent
5eb372a7ff
commit
2fe85510a7
|
@ -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;
|
||||
|
|
|
@ -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_"];
|
||||
|
|
|
@ -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') .
|
||||
|
|
Loading…
Reference in New Issue