Merge branch 'ent-10141-GUARDIA-Problemas-al-levantar-el-servidor-de-Pandora-FMS' into 'develop'

fixed problem regarding type of module status value in mysql8 strict mode

See merge request artica/pandorafms!5408
This commit is contained in:
Daniel Rodriguez 2023-01-18 11:13:05 +00:00
commit 1522990afd
1 changed files with 1 additions and 1 deletions

View File

@ -4043,7 +4043,7 @@ sub pandora_event ($$$$$$$$$$;$$$$$$$$$$$$) {
$custom_data = '' unless defined ($custom_data);
$server_id = 0 unless defined ($server_id);
$module_data = defined($module) ? $module->{'datos'} : '' unless defined ($module_data);
$module_status = defined($module) ? $module->{'estado'} : '' unless defined ($module_status);
$module_status = defined($module) ? $module->{'estado'} : 0 unless defined ($module_status);
# If the event is created with validated status, assign ack_utimestamp
my $ack_utimestamp = $event_status == 1 ? time() : 0;