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:
commit
1522990afd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue