fixup! EmailNotification: address Use of uninitialized value in numeric eq (==)
This commit is contained in:
parent
a36d23c1dd
commit
a887b3d346
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue