possible fix for #4981

v1.18.x
Julian Lam 9 years ago
parent 7ca6bc25c7
commit be96704d5d

@ -121,7 +121,7 @@ module.exports = function(Posts) {
var cids = topics.map(function(topic) {
if (topic) {
topic.title = validator.escape(topic.title);
topic.title = validator.escape(topic.title || '');
topic.deleted = parseInt(topic.deleted, 10) === 1;
}
return topic && topic.cid;

Loading…
Cancel
Save