mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
minor fixes
This commit is contained in:
parent
bb11403c4b
commit
8a0215dcc9
@ -1648,6 +1648,17 @@ sub pandora_process_module ($$$$$$$$$;$) {
|
|||||||
"' for agent " .
|
"' for agent " .
|
||||||
(defined ($agent) && $agent ne '' ? "'" . safe_output($agent->{'nombre'}) . "'" : 'ID ' . $module->{'id_agente'}) . ".",
|
(defined ($agent) && $agent ne '' ? "'" . safe_output($agent->{'nombre'}) . "'" : 'ID ' . $module->{'id_agente'}) . ".",
|
||||||
10);
|
10);
|
||||||
|
|
||||||
|
# Ensure default values.
|
||||||
|
$module->{'min_ff_event'} = 0 unless defined($module->{'min_ff_event'});
|
||||||
|
$module->{'ff_timeout'} = 0 unless defined($module->{'ff_timeout'});
|
||||||
|
$module->{'module_interval'} = 0 unless defined($module->{'module_interval'});
|
||||||
|
|
||||||
|
if (ref($agent) eq 'HASH') {
|
||||||
|
if (!defined($agent->{'interval'}) && defined($agent->{'interval'})) {
|
||||||
|
$agent->{'intervalo'} = $agent->{'interval'};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Get agent information
|
# Get agent information
|
||||||
if (! defined ($agent) || $agent eq '') {
|
if (! defined ($agent) || $agent eq '') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user