diff --git a/pandora_console/operation/snmpconsole/snmp_view.php b/pandora_console/operation/snmpconsole/snmp_view.php index 425cbe879a..1b6a9829a3 100755 --- a/pandora_console/operation/snmpconsole/snmp_view.php +++ b/pandora_console/operation/snmpconsole/snmp_view.php @@ -477,7 +477,15 @@ if ($traps !== false) { //OID $table->cellclass[$idx][2] = get_priority_class ($severity); - $data[2] = '' . (empty($trap["oid"]) ? __('N/A') : $trap["oid"]) .''; + if (! empty($trap["text"])) { + $enterprise_string = $trap["text"]; + } else if (! empty($trap["oid"])) { + $enterprise_string = $trap["oid"]; + } else { + $enterprise_string = __('N/A'); + } + + $data[2] = '' . $enterprise_string .''; //Count if ($group_by) { @@ -591,13 +599,6 @@ if ($traps !== false) { '; } - if ($trap["text"] != "") { - $string .= ' - ' . '' . __('Text:') . ' - ' . $trap['text'] . ' - '; - } - if ($trap["type"] != "") { $trap_types = array(-1 => __('None'), 0 => __('Cold start (0)'), 1 => __('Warm start (1)'), 2 => __('Link down (2)'), 3 => __('Link up (3)'), 4 => __('Authentication failure (4)'), 5 => __('Other'));