summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-04 16:58:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-04 16:58:30 +0000
commitf16ab838d89dc440825fb6a9c1668b191c889b2a (patch)
treee3f37a0f9b34c29f751252419e6c4977f7f0e8a1 /app
parent6260892949de3b01924affb785e935d038ca7f1c (diff)
downloadredmine-f16ab838d89dc440825fb6a9c1668b191c889b2a.tar.gz
redmine-f16ab838d89dc440825fb6a9c1668b191c889b2a.zip
Small fix in Mailer.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@701 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/mailer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb
index 6bb71b250..5679ca284 100644
--- a/app/models/mailer.rb
+++ b/app/models/mailer.rb
@@ -44,7 +44,7 @@ class Mailer < ActionMailer::Base
set_language_if_valid(Setting.default_language)
# Sends to all project members
issue = journal.journalized
- @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }
+ @recipients = issue.project.members.collect { |m| m.user.mail if m.user.mail_notification }.compact
# Sends to author and assignee (even if they turned off mail notification)
@recipients << issue.author.mail if issue.author
@recipients << issue.assigned_to.mail if issue.assigned_to