From 955d5f45e9f7802375801bc3a817d1c27646f440 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Fri, 20 Jun 2014 20:38:02 +1000 Subject: [PATCH] SNMP Default Port Support Fix Typo #1 --- html/pages/addhost.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/addhost.inc.php b/html/pages/addhost.inc.php index 1c94ea3c5..d017e421b 100644 --- a/html/pages/addhost.inc.php +++ b/html/pages/addhost.inc.php @@ -23,7 +23,7 @@ if ($_POST['hostname']) } $snmpver = mres($_POST['snmpver']); - if ($_POST['port']) { $port = mres($_POST['port']); } else { $config['snmp']['community']; } + if ($_POST['port']) { $port = mres($_POST['port']); } else { $port = $config['snmp']['port']; } print_message("Adding host $hostname communit" . (count($config['snmp']['community']) == 1 ? "y" : "ies") . " " . implode(', ',$config['snmp']['community']) . " port $port"); } elseif ($_POST['snmpver'] === "v3")