From 4fd90ec7843b4e9d090f44a9390191dbb7228b2d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 19 Oct 2021 21:41:41 -0400 Subject: [PATCH] EmailNotification: address Use of uninitialized value in numeric eq (==) --- src/lib/Hydra/Plugin/EmailNotification.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = <