dont crash if html is not string

This commit is contained in:
barisusakli
2015-02-05 20:38:43 -05:00
parent 9bca777320
commit d3aa353d73

View File

@@ -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,