2011-07-12 Sergio Martin <sergio.martin@artica.es>

* operation/snmpconsole/snmp_view.php: Fixed the trap generator
	to be enabled ever 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4548 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-07-12 14:44:33 +00:00
parent 578116e863
commit cdb6eb19d0
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2011-07-12 Sergio Martin <sergio.martin@artica.es>
* operation/snmpconsole/snmp_view.php: Fixed the trap generator
to be enabled ever
2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_events.php

View File

@ -164,12 +164,6 @@ if (($config['dbtype'] == 'oracle') && ($traps !== false)) {
}
}
// No traps
if (empty ($traps)) {
echo '<div class="nf">'.__('There are no SNMP traps in database').'</div>';
return;
}
$traps_generator = '<form method="POST" action="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&refr='.$config["refr"].'&pure='.$config["pure"].'">';
$table->width = '90%';
$table->size = array ();
@ -206,6 +200,12 @@ $traps_generator .= '</form>';
ui_toggle($traps_generator, __('Trap generator'));
// No traps
if (empty ($traps)) {
echo '<div class="nf">'.__('There are no SNMP traps in database').'</div>';
return;
}
$table->width = '90%';
$table->size = array ();
$table->size[0] = '120px';