Skip to content

Node.js based forum software built for the modern web

handling cases where no callback is passed to emailer.send

Julian Lamfdaccc804c12
diff --git a/src/emailer.js b/src/emailer.js
index 6eaf913e4c..e7c92fa812 100644
--- a/src/emailer.js
+++ b/src/emailer.js
@@ -20,6 +20,7 @@ var fs = require('fs'),
};
Emailer.send = function(template, uid, params, callback) {
+ if (!callback) { callback = function() {}; }
if (!app) {
winston.warn('[emailer] App not ready!');
return callback();