Commit 94232797 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user -…

Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
parent 76c3a58c
...@@ -414,7 +414,9 @@ sub ProcessOneBug { ...@@ -414,7 +414,9 @@ sub ProcessOneBug {
my $sent_mail = 0; my $sent_mail = 0;
my $user = new Bugzilla::User($user_id); my $user = new Bugzilla::User($user_id);
# Deleted users must be excluded.
next unless $user;
if ($user->can_see_bug($id)) if ($user->can_see_bug($id))
{ {
# Go through each role the user has and see if they want mail in # Go through each role the user has and see if they want mail in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment