crash fix

This commit is contained in:
barisusakli
2014-08-30 11:50:45 -04:00
parent 5f2380fdcd
commit 0473e7f25b

View File

@@ -274,7 +274,9 @@ var async = require('async'),
for(var i=0; i<posts.length; ++i) {
posts[i].index = start + i;
}
posts[0].index = 0;
if (posts[0]) {
posts[0].index = 0;
}
Topics.addPostData(posts, uid, next);
});
});