Node.js based forum software built for the modern web
use the real count
barisusakli47af3eb7e54c
diff --git a/src/controllers/search.js b/src/controllers/search.jsindex be98589c54..4ca7937687 100644--- a/src/controllers/search.js+++ b/src/controllers/search.js@@ -60,7 +60,7 @@ searchController.search = function (req, res, next) {var searchData = results.search;searchData.categories = categoriesData;- searchData.categoriesCount = results.categories.length;+ searchData.categoriesCount = categoriesData.length;searchData.pagination = pagination.create(page, searchData.pageCount, req.query);searchData.showAsPosts = !req.query.showAs || req.query.showAs === 'posts';searchData.showAsTopics = req.query.showAs === 'topics';