mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
another crash fix
This commit is contained in:
@@ -272,7 +272,9 @@ var async = require('async'),
|
||||
}
|
||||
start = parseInt(start, 10);
|
||||
for(var i=0; i<posts.length; ++i) {
|
||||
posts[i].index = start + i;
|
||||
if (posts[i]) {
|
||||
posts[i].index = start + i;
|
||||
}
|
||||
}
|
||||
if (posts[0]) {
|
||||
posts[0].index = 0;
|
||||
|
||||
Reference in New Issue
Block a user