diff --git a/src/lib/Hydra/Plugin/EmailNotification.pm b/src/lib/Hydra/Plugin/EmailNotification.pm index 6546dd1c..b5f133a6 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 defined($self->{config}->{email_notification}) && $self->{config}->{email_notification} == 1; + return ($self->{config}->{email_notification} // 0) == 1; } my $template = <