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

This commit is contained in:
Graham Christensen 2021-10-20 10:40:08 -04:00
parent a36d23c1dd
commit a887b3d346

View file

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