Merge branch 'ent-5336-SNMP-Interface-Wizard' into 'develop'

Fixed when you select 'show all modules' and the module is not from the interface

See merge request artica/pandorafms!3056
This commit is contained in:
Daniel Rodriguez 2020-02-24 14:30:49 +01:00
commit 43ca1bdc5d
1 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,11 @@ if ($create_modules) {
$name_array = explode('::', $oid_array[0]);
$name = $ifname.'_'.$name_array[1];
// If you select "show all modules" and the module is not from the interface.
if (!array_key_exists($name_array[1], $interfaces[$id])) {
continue;
}
// Clean the name.
$name = str_replace('"', '', $name);