added null check for email property #ugly

This commit is contained in:
Henry Oswald 2014-03-06 09:51:19 +00:00
parent 9ae85abb74
commit f5e802a7d1

View file

@ -2,6 +2,11 @@ settings = require("settings-sharelatex")
EmailBuilder = require "./EmailBuilder"
EmailSender = require "./EmailSender"
if !settings.email?
settings.email =
lifecycleEnabled:false
module.exports =
sendEmail : (emailType, opts, callback = (err)->)->