summaryrefslogtreecommitdiffstats
path: root/extensions/Profanivore
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-01-06 04:06:56 +0100
committerByron Jones <bjones@mozilla.com>2012-01-06 04:06:56 +0100
commite1df54588e481a9727f8a95816a348527a50c27d (patch)
tree866628f1af08e253dda96badac50ff5bf7e166dd /extensions/Profanivore
parentaa054c034d008bcac3978baab016641822ae695c (diff)
downloadbugzilla-e1df54588e481a9727f8a95816a348527a50c27d.tar.gz
bugzilla-e1df54588e481a9727f8a95816a348527a50c27d.tar.xz
Bug 715771: fix Profanivore bug when sending some emails
Diffstat (limited to 'extensions/Profanivore')
-rw-r--r--extensions/Profanivore/Extension.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/Profanivore/Extension.pm b/extensions/Profanivore/Extension.pm
index 266ab9ff0..fad909c39 100644
--- a/extensions/Profanivore/Extension.pm
+++ b/extensions/Profanivore/Extension.pm
@@ -69,7 +69,8 @@ sub mailer_before_send {
$author = new Bugzilla::User({ name => $author });
$recipient = new Bugzilla::User({ name => $recipient });
- if ($author->id &&
+ if ($author &&
+ $author->id &&
!$author->in_group('editbugs') &&
$author->id ne $recipient->id)
{