mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed module types check
This commit is contained in:
parent
881a8e6a01
commit
24d1522bd0
@ -2985,6 +2985,11 @@ function agents_get_network_interfaces($agents=false, $agents_filter=false)
|
||||
$accepted_module_types[] = $generic_proc;
|
||||
}
|
||||
|
||||
$remote_snmp = (int) db_get_value('id_tipo', 'ttipo_modulo', 'nombre', 'remote_snmp');
|
||||
if ($remote_snmp) {
|
||||
$accepted_module_types[] = $remote_snmp;
|
||||
}
|
||||
|
||||
if (empty($accepted_module_types)) {
|
||||
$accepted_module_types[] = 0;
|
||||
// No modules will be returned
|
||||
|
Loading…
x
Reference in New Issue
Block a user