EmailNotification: address Use of uninitialized value in numeric eq (==)

This commit is contained in:
Graham Christensen 2021-10-19 21:41:41 -04:00
parent 01112e9bd3
commit 4fd90ec784

View file

@ -12,7 +12,7 @@ use Hydra::Helper::Email;
sub isEnabled { sub isEnabled {
my ($self) = @_; my ($self) = @_;
return $self->{config}->{email_notification} == 1; return defined($self->{config}->{email_notification}) && $self->{config}->{email_notification} == 1;
} }
my $template = <<EOF; my $template = <<EOF;