forked from lix-project/hydra
EmailNotification: address Use of uninitialized value in numeric eq (==)
This commit is contained in:
parent
01112e9bd3
commit
4fd90ec784
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue