diff options
author | lpsolit%gmail.com <> | 2006-01-08 01:16:53 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-01-08 01:16:53 +0100 |
commit | 94232797b7ea157c75ee92a9830993fbff1caad1 (patch) | |
tree | def1a7bb9e9ac846374707242b2be67c3b79b029 | |
parent | 76c3a58cd5e5f040c09258b98727c42f7059a78d (diff) | |
download | bugzilla-94232797b7ea157c75ee92a9830993fbff1caad1.tar.gz bugzilla-94232797b7ea157c75ee92a9830993fbff1caad1.tar.xz |
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
-rw-r--r-- | Bugzilla/BugMail.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 982bf6c04..e4a19d65f 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -414,7 +414,9 @@ sub ProcessOneBug { my $sent_mail = 0; my $user = new Bugzilla::User($user_id); - + # Deleted users must be excluded. + next unless $user; + if ($user->can_see_bug($id)) { # Go through each role the user has and see if they want mail in |