From cc861fd3a1a2004f2e3684b0939d4c312a830ca5 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 29 May 2015 10:17:07 +0200 Subject: [PATCH] Fixed problems with list of interfaces in snmp walk wizard of interfaces. Tiquet: #2288 --- .../agentes/agent_wizard.snmp_interfaces_explorer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php b/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php index c1e20b1f94..0ec52b4434 100644 --- a/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php +++ b/pandora_console/godmode/agentes/agent_wizard.snmp_interfaces_explorer.php @@ -309,12 +309,12 @@ if ($create_modules) { $interfaces_list = array(); foreach ($interfaces as $interface) { // Get the interface name, removing " " characters and avoid "blank" interfaces - if (isset($interface['ifName']) && $interface['ifName']['value'] != "") { - $ifname = $interface['ifName']['value']; - } - else if (isset($interface['ifDescr']) && $interface['ifDescr']['value'] != "") { + if (isset($interface['ifDescr']) && $interface['ifDescr']['value'] != "") { $ifname = $interface['ifDescr']['value']; } + else if (isset($interface['ifName']) && $interface['ifName']['value'] != "") { + $ifname = $interface['ifName']['value']; + } else { continue; }