another crash fix

This commit is contained in:
barisusakli
2014-08-30 11:54:43 -04:00
parent 0473e7f25b
commit 73bef8168f

View File

@@ -272,8 +272,10 @@ var async = require('async'),
}
start = parseInt(start, 10);
for(var i=0; i<posts.length; ++i) {
if (posts[i]) {
posts[i].index = start + i;
}
}
if (posts[0]) {
posts[0].index = 0;
}