summaryrefslogtreecommitdiffstats
path: root/extensions/SecureMail
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2013-06-07 11:04:39 +0200
committerGervase Markham <gerv@mozilla.org>2013-06-07 11:04:39 +0200
commit43a439ebce1b5c43542bc6619acd7daa24068def (patch)
treea895f6838f517bbdfa4704910c7e1060f9592a96 /extensions/SecureMail
parent3dceb822ce0d97785356719ba395fbcf29dd8ba0 (diff)
downloadbugzilla-43a439ebce1b5c43542bc6619acd7daa24068def.tar.gz
bugzilla-43a439ebce1b5c43542bc6619acd7daa24068def.tar.xz
Bug 858486 - make SecureMail not die if insidergroup is undefined. r=dkl.
Diffstat (limited to 'extensions/SecureMail')
-rw-r--r--extensions/SecureMail/Extension.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm
index 1ea691320..3fc902a9f 100644
--- a/extensions/SecureMail/Extension.pm
+++ b/extensions/SecureMail/Extension.pm
@@ -273,7 +273,10 @@ sub mailer_before_send {
}
# If the insider group has securemail enabled..
my $insider_group = Bugzilla::Group->new({ name => Bugzilla->params->{'insidergroup'} });
- if ($insider_group->secure_mail && $make_secure == SECURE_NONE) {
+ if ($insider_group
+ && $insider_group->secure_mail
+ && $make_secure == SECURE_NONE)
+ {
my $comment_is_private = Bugzilla->dbh->selectcol_arrayref(
"SELECT isprivate FROM longdescs WHERE bug_id=? ORDER BY bug_when",
undef, $bug_id);