mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
crash fix
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user