Skip to content

Node.js based forum software built for the modern web

added 1 more parseInt

Baris Usaklidf10bde2dbf7
diff --git a/src/topics.js b/src/topics.js
index 1865017471..f5a496bc77 100644
--- a/src/topics.js
+++ b/src/topics.js
@@ -574,7 +574,7 @@ var async = require('async'),
'slug': topicData.slug,
'postcount': topicData.postcount,
'viewcount': topicData.viewcount,
- 'unreplied': topicData.postcount > 1,
+ 'unreplied': parseInt(topicData.postcount, 10) > 1,
'topic_id': tid,
'expose_tools': privileges.editable ? 1 : 0,
'posts': topicPosts