mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-23 22:05:41 +02:00
Fixed problems with list of interfaces in snmp walk wizard of interfaces. Tiquet: #2288
This commit is contained in:
parent
a74b7ed55f
commit
cc861fd3a1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user