Skip to content

Node.js based forum software built for the modern web

fix: #7350

Baris Usakli8c68780e5430
diff --git a/src/upgrades/1.10.2/fix_category_topic_zsets.js b/src/upgrades/1.10.2/fix_category_topic_zsets.js
index c9d67231ff..b469f5c480 100644
--- a/src/upgrades/1.10.2/fix_category_topic_zsets.js
+++ b/src/upgrades/1.10.2/fix_category_topic_zsets.js
@@ -24,7 +24,7 @@ module.exports = {
if (parseInt(topicData.pinned, 10) === 1) {
return setImmediate(next);
}
-
+ topicData.postcount = parseInt(topicData.postcount, 10) || 0;
db.sortedSetAdd('cid:' + topicData.cid + ':tids:posts', topicData.postcount, tid, next);
},
function (next) {