diff --git a/controllers/story.js b/controllers/story.js index 1f1bf90247..0e7af182f6 100755 --- a/controllers/story.js +++ b/controllers/story.js @@ -518,7 +518,7 @@ exports.storySubmission = function(req, res, next) { return next(err); } // If the emails of both authors differ, only then proceed with email notification - if (data.author.email && (data.author.email !== recipient.email)) { + if (typeof data.author !== 'undefined' && data.author.email && typeof recipient !== 'undefined' && recipient.email && (data.author.email !== recipient.email)) { var transporter = nodemailer.createTransport({ service: 'Mandrill', auth: {