Node.js based forum software built for the modern web
crash fix
barisusakli0473e7f25b57
diff --git a/src/topics.js b/src/topics.jsindex 34fe471163..c34746d477 100644--- a/src/topics.js+++ b/src/topics.js@@ -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);});});