mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
extra checks before translate
This commit is contained in:
parent
3f7067fe48
commit
ce87cc6ec2
@ -551,7 +551,11 @@ sub pandora_evaluate_alert ($$$$$$$;$$$$) {
|
||||
return $status if ($alert->{$DayNames[$wday]} != 1);
|
||||
}
|
||||
|
||||
my $schedule = PandoraFMS::Tools::p_decode_json($pa_config, $alert->{'schedule'});
|
||||
my $schedule;
|
||||
if (defined($alert->{'schedule'} && $alert->{'schedule'} != '')) {
|
||||
$schedule = PandoraFMS::Tools::p_decode_json($pa_config, $alert->{'schedule'});
|
||||
}
|
||||
|
||||
if (defined($schedule)) {
|
||||
# New behaviour.
|
||||
return $status unless defined($schedule) && ref $schedule eq "HASH";
|
||||
|
Loading…
x
Reference in New Issue
Block a user