From 0bf583b6845043b00c9cce9c07a048beb229902b Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sat, 27 Aug 2011 12:04:09 +0800 Subject: [PATCH] Don't try and send emails to nobody. --- app/models/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/app.rb b/app/models/app.rb index fb2caee..a1963d4 100644 --- a/app/models/app.rb +++ b/app/models/app.rb @@ -75,7 +75,7 @@ class App end def notification_recipients - notify_all_users ? User.all.map(&:email) : watchers.map(&:address) + notify_all_users ? User.all.map(&:email).reject(&:blank?) : watchers.map(&:address) end protected -- libgit2 0.21.2