fixing possible crash

v1.18.x
Julian Lam 9 years ago
parent 4cc4824087
commit 3b6b36cfa6

@ -390,7 +390,7 @@ var db = require('./database'),
count: 1, count: 1,
markRead: false markRead: false
}, function(err, teaser) { }, function(err, teaser) {
teaser = teaser[0]; var teaser = teaser[0];
teaser.content = S(teaser.content).stripTags().decodeHTMLEntities().s; teaser.content = S(teaser.content).stripTags().decodeHTMLEntities().s;
next(err, teaser); next(err, teaser);
}); });

Loading…
Cancel
Save