From 518d731562970c2f77c15bb0b278d1ebcba5b517 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 6 Sep 2014 04:09:13 -0400 Subject: [PATCH] one more time --- src/controllers/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index 6e72f3a446..8cbde07192 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -62,7 +62,7 @@ topicsController.get = function(req, res, next) { } var postIndex = 0; - req.params.post_index = req.params.post_index || 0; + req.params.post_index = parseInt(req.params.post_index, 10) || 0; if (!settings.usePagination) { if (reverse) { if (parseInt(req.params.post_index, 10) === 1) {