diff --git a/src/widgets.js b/src/widgets.js index 047befa8c2..c0234b2a28 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -44,6 +44,10 @@ var async = require('async'), return next(err); } + if (typeof html !== 'string') { + html = ''; + } + if (widget.data.container && widget.data.container.match('{body}')) { html = templates.parse(widget.data.container, { title: widget.data.title,