mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
remove more parseints
This commit is contained in:
@@ -66,7 +66,7 @@ categoryController.get = function (req, res, callback) {
|
||||
|
||||
settings = results.userSettings;
|
||||
|
||||
var topicCount = parseInt(results.categoryData.topic_count, 10);
|
||||
var topicCount = results.categoryData.topic_count;
|
||||
pageCount = Math.max(1, Math.ceil(topicCount / settings.topicsPerPage));
|
||||
|
||||
if (topicIndex < 0 || topicIndex > Math.max(topicCount - 1, 0)) {
|
||||
|
||||
Reference in New Issue
Block a user