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

This commit is contained in:
lpsolit%gmail.com 2006-01-07 16:16:53 +00:00
Родитель d2000fb2ba
Коммит d37e4f768f
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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