dont crash if html is not string

v1.18.x
barisusakli 10 years ago
parent 9bca777320
commit d3aa353d73

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

Loading…
Cancel
Save