From f5e802a7d1ef5df2d28ba5e40bb6c5a56baecd21 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 6 Mar 2014 09:51:19 +0000 Subject: [PATCH] added null check for email property #ugly --- services/web/app/coffee/Features/Email/EmailHandler.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web/app/coffee/Features/Email/EmailHandler.coffee b/services/web/app/coffee/Features/Email/EmailHandler.coffee index 732009c12c..4bd9586312 100644 --- a/services/web/app/coffee/Features/Email/EmailHandler.coffee +++ b/services/web/app/coffee/Features/Email/EmailHandler.coffee @@ -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)->)->