summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-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)
{