diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index 721365e1..6546dd1c 100644 --- a/src/lib/Hydra/Plugin/EmailNotification.pm +++ b/src/lib/Hydra/Plugin/EmailNotification.pm @@ -12,7 +12,7 @@ use Hydra::Helper::Email; sub isEnabled { my ($self) = @_; - return $self->{config}->{email_notification} == 1; + return defined($self->{config}->{email_notification}) && $self->{config}->{email_notification} == 1; } my $template = <