From 42363c32f7279bb55009fe3b55c493bd644dfe02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Wed, 30 Nov 2011 18:08:36 +0100 Subject: [PATCH] Better checks for previous commit. --- app/models/mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index cfeab4ed..8e331011 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -396,8 +396,8 @@ class Mailer < ActionMailer::Base # if he doesn't want to receive notifications about what he does @author ||= User.current if @author.pref[:no_self_notified] - recipients((recipients.is_a?(Array) ? recipients : [recipients]) - [@author.mail]) if recipients - cc((cc.is_a?(Array) ? cc : [cc]) - [@author.mail]) if cc + recipients((recipients.is_a?(Array) ? recipients : [recipients]) - [@author.mail]) if recipients.present? + cc((cc.is_a?(Array) ? cc : [cc]) - [@author.mail]) if cc.present? end notified_users = [recipients, cc].flatten.compact.uniq