Modified the value getted in DB

This commit is contained in:
Jose Gonzalez 2020-07-27 11:01:47 +02:00
parent 7c3f30a277
commit 56a71d02c0
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
_server_name_ => (defined ($agent)) ? $agent->{'server_name'} : '',
_target_ip_ => (defined ($module)) ? $module->{'ip_target'} : '',
_target_port_ => (defined ($module)) ? $module->{'tcp_port'} : '',
_policy_ => (defined ($module)) ? get_db_value ($dbh, "SELECT name FROM tpolicies WHERE id = ?", $module->{'id_policy_module'}) : '',
_policy_ => (defined ($module)) ? get_db_value ($dbh, "SELECT name FROM tpolicies WHERE id = ?", get_db_value ($dbh, "SELECT id_policy FROM tpolicy_modules WHERE id = ?", $module->{'id_policy_module'})) : '',
_plugin_parameters_ => (defined ($module)) ? $module->{'plugin_parameter'} : '',
_email_tag_ => undef,
_phone_tag_ => undef,