Merge branch 'ent-6091-Suprimir-corregir-logs' into 'develop'

Solved issue

Closes pandora_enterprise#6091

See merge request artica/pandorafms!3786
This commit is contained in:
Daniel Rodriguez 2021-01-25 12:15:16 +01:00
commit 6063c4f50b
1 changed files with 1 additions and 1 deletions

View File

@ -4296,7 +4296,7 @@ sub on_demand_macro($$$$$$;$) {
if ($field_value eq ''){
$field_value = 'Module ' . $field_number . " not found";
}
elsif ($unit_mod ne '') {
elsif (defined($unit_mod) && $unit_mod ne '') {
$field_value .= $unit_mod;
}