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