diff --git a/app/models/forum_topic.rb b/app/models/forum_topic.rb index 3c96dd8..9395a37 100644 --- a/app/models/forum_topic.rb +++ b/app/models/forum_topic.rb @@ -67,7 +67,14 @@ class ForumTopic < ActiveRecord::Base user_to_notify.uniq! user_to_notify.each do |forum_user| - ForumMails.topic_notification(topic, forum_user).deliver + begin + if forum_user and forum_user.email + ForumMails.topic_notification(topic, forum_user).deliver + end + rescue + + end + end end