show historical traps in snmp console

This commit is contained in:
alejandro.campos@artica.es 2022-10-31 15:59:24 +01:00
parent bf6f5479e8
commit 8ad0bbf892
1 changed files with 2 additions and 2 deletions

View File

@ -671,8 +671,8 @@ $filter_resume['group_by'] = $group_by;
$filter_resume['hours_ago'] = $hours_ago;
$filter_resume['trap_type'] = $trap_types[$trap_type];
$traps = db_get_all_rows_sql($sql);
$trapcount = (int) db_get_value_sql($sql_count);
$traps = db_get_all_rows_sql($sql, true);
$trapcount = (int) db_get_value_sql($sql_count, false, true);
// No traps.
if (empty($traps)) {