mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Fixed when you select 'show all modules' and the module is not from the interface
This commit is contained in:
parent
0538bd5185
commit
e65de54f39
@ -259,6 +259,11 @@ if ($create_modules) {
|
|||||||
$name_array = explode('::', $oid_array[0]);
|
$name_array = explode('::', $oid_array[0]);
|
||||||
$name = $ifname.'_'.$name_array[1];
|
$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.
|
// Clean the name.
|
||||||
$name = str_replace('"', '', $name);
|
$name = str_replace('"', '', $name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user