Skip to content

Node.js based forum software built for the modern web

category recent post fix

barisusaklied18ac7fdf1b
diff --git a/public/src/forum/home.js b/public/src/forum/home.js
index b3a47db264..461b5a9c8f 100644
--- a/public/src/forum/home.js
+++ b/public/src/forum/home.js
@@ -41,7 +41,7 @@ define('forum/home', function() {
var category = $('.home .category-item[data-cid="' + cid + '"]');
var categoryBox = category.find('.category-box');
var numRecentReplies = category.attr('data-numRecentReplies');
- if (!numRecentReplies) {
+ if (!numRecentReplies || !parseInt(numRecentReplies, 10)) {
return;
}