fixing possible crash

This commit is contained in:
Julian Lam
2015-12-11 19:50:21 -05:00
parent 4cc4824087
commit 3b6b36cfa6

View File

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