Skip to content

Node.js based forum software built for the modern web

no longer requiring that interstitial.data be set in interstitial data

Julian Lamfafcdf832092
diff --git a/src/controllers/index.js b/src/controllers/index.js
index 040e7ab89d..2d834c248f 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -199,7 +199,7 @@ Controllers.registerInterstitial = function(req, res, next) {
}
var renders = data.interstitials.map(function(interstitial) {
- return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data);
+ return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data || {});
});
var errors = req.flash('error');