mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +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) {
|
for(var i=0; i<posts.length; ++i) {
|
||||||
posts[i].index = start + i;
|
posts[i].index = start + i;
|
||||||
}
|
}
|
||||||
|
if (posts[0]) {
|
||||||
posts[0].index = 0;
|
posts[0].index = 0;
|
||||||
|
}
|
||||||
Topics.addPostData(posts, uid, next);
|
Topics.addPostData(posts, uid, next);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user