Removed the information about the defined alerts for the metaconsole (again)

This commit is contained in:
Alejandro Gallardo Escobar 2015-05-19 19:20:00 +02:00
parent 137acdb232
commit 837667b441
1 changed files with 7 additions and 3 deletions

View File

@ -5040,18 +5040,22 @@ function reporting_get_stats_alerts($data, $links = false) {
$table_al->rowclass[] = ''; $table_al->rowclass[] = '';
$table_al->data[] = $tdata; $table_al->data[] = $tdata;
if(!defined('METACONSOLE')){ if (!defined('METACONSOLE')) {
$output = '<fieldset class="databox tactical_set"> $output = '<fieldset class="databox tactical_set">
<legend>' . <legend>' .
__('Defined and fired alerts') . __('Defined and fired alerts') .
'</legend>' . '</legend>' .
html_print_table($table_al, true) . '</fieldset>'; html_print_table($table_al, true) . '</fieldset>';
}else{ }
else {
// Remove the defined alerts cause with the new cache table is difficult to retrieve them
unset($table_al->data[0][0], $table_al->data[0][1]);
$table_al->class = "tactical_view"; $table_al->class = "tactical_view";
$table_al->style = array(); $table_al->style = array();
$output = '<fieldset class="tactical_set"> $output = '<fieldset class="tactical_set">
<legend>' . <legend>' .
__('Defined and fired alerts') . __('Fired alerts') .
'</legend>' . '</legend>' .
html_print_table($table_al, true) . '</fieldset>'; html_print_table($table_al, true) . '</fieldset>';
} }