Fixed problems with list of interfaces in snmp walk wizard of interfaces. Tiquet: #2288

This commit is contained in:
m-lopez-f 2015-05-29 10:17:07 +02:00
parent a74b7ed55f
commit cc861fd3a1
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}