fix empty pages

This commit is contained in:
barisusakli
2014-10-27 23:20:40 -04:00
parent b12476c422
commit c5ba327d8f
3 changed files with 9 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ topicsController.get = function(req, res, next) {
},
function (results, next) {
var postCount = parseInt(results.postCount, 10) + 1;
var postCount = parseInt(results.postCount, 10);
if (utils.isNumber(req.params.post_index)) {
var url = '';
if (req.params.post_index > postCount) {