aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MGA/Advisories.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MGA/Advisories.pm')
-rw-r--r--lib/MGA/Advisories.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index 0bafc88..9146242 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -191,6 +191,7 @@ sub output_pages {
sub send_adv_mail {
my ($advdb) = @_;
return unless $config->{send_adv_mail} eq 'yes';
+ return unless $config->{mode} eq 'site';
my $template = Template->new(
INCLUDE_PATH => $config->{tmpl_dir},
);
@@ -226,6 +227,7 @@ sub send_adv_mail {
sub send_report_mail {
my ($advdb) = @_;
return unless $config->{send_report_mail} eq 'yes';
+ return unless $config->{mode} eq 'site';
return unless @report_logs;
my $template = Template->new(
INCLUDE_PATH => $config->{tmpl_dir},