added 1 more parseInt

v1.18.x
Baris Usakli 11 years ago
parent 0da141e7bc
commit df10bde2db

@ -574,7 +574,7 @@ var async = require('async'),
'slug': topicData.slug, 'slug': topicData.slug,
'postcount': topicData.postcount, 'postcount': topicData.postcount,
'viewcount': topicData.viewcount, 'viewcount': topicData.viewcount,
'unreplied': topicData.postcount > 1, 'unreplied': parseInt(topicData.postcount, 10) > 1,
'topic_id': tid, 'topic_id': tid,
'expose_tools': privileges.editable ? 1 : 0, 'expose_tools': privileges.editable ? 1 : 0,
'posts': topicPosts 'posts': topicPosts

Loading…
Cancel
Save