Commit 0bf583b6845043b00c9cce9c07a048beb229902b
1 parent
2fe1732a
Exists in
master
and in
1 other branch
Don't try and send emails to nobody.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/app.rb
@@ -75,7 +75,7 @@ class App | @@ -75,7 +75,7 @@ class App | ||
75 | end | 75 | end |
76 | 76 | ||
77 | def notification_recipients | 77 | def notification_recipients |
78 | - notify_all_users ? User.all.map(&:email) : watchers.map(&:address) | 78 | + notify_all_users ? User.all.map(&:email).reject(&:blank?) : watchers.map(&:address) |
79 | end | 79 | end |
80 | 80 | ||
81 | protected | 81 | protected |