From 4c2d66791d6c729e48baf56325394cc78073ff79 Mon Sep 17 00:00:00 2001 From: Nils Steinger Date: Tue, 22 Sep 2015 15:27:36 +0200 Subject: [PATCH] Fixed typo in variable name --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index a98b5bfd3..8c3acfe93 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -276,7 +276,7 @@ function addHost($host, $snmpver, $port = '161', $transport = 'udp', $quiet = '0 if (ip_exists($ip) === false) { // Test reachability $address_family = snmpTransportToAddressFamily($transport); - if ($force_add == 1 || isPingable($host, $addressFamily)) { + if ($force_add == 1 || isPingable($host, $address_family)) { if (empty($snmpver)) { // Try SNMPv2c $snmpver = 'v2c';