diff --git a/usr/local/www/services_snmp.php b/usr/local/www/services_snmp.php index 9f49e1fa05..a0a625c8f0 100755 --- a/usr/local/www/services_snmp.php +++ b/usr/local/www/services_snmp.php @@ -83,7 +83,7 @@ if ($_POST) { $reqdfields = explode(" ", "syslocation"); $reqdfieldsn = explode(",", "System location"); - do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); + do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); } if ($_POST['trapenable']) { @@ -114,7 +114,7 @@ if ($_POST) { if (!$input_errors) { $config['snmpd']['enable'] = $_POST['enable'] ? true : false; $config['snmpd']['pollport'] = $_POST['pollport']; - $config['snmpd']['syslocation'] = $_POST['syslocation']; + $config['snmpd']['syslocation'] = $_POST['syslocation']; $config['snmpd']['syscontact'] = $_POST['syscontact']; $config['snmpd']['rocommunity'] = $_POST['rocommunity']; /* disabled until some docs show up on what this does. @@ -302,14 +302,24 @@ function enable_change(whichone) { */ ?> -
| Enable SNMP Traps | +onClick="enable_change(this)"> Enable |