crash fix

v1.18.x
barisusakli 11 years ago
parent 7255ce3dbe
commit ba32a4dc4f

@ -414,7 +414,11 @@ var db = require('./database'),
Categories.onNewPostMade = function(postData) {
topics.getTopicFields(postData.tid, ['cid', 'pinned'], function(err, topicData) {
if (err) {
winston.error(err.message);
return winston.error(err.message);
}
if (!topicData) {
return;
}
var cid = topicData.cid;

Loading…
Cancel
Save