Node.js based forum software built for the modern web
parseInt
barisusakli3f4ede0778cf
diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.jsindex e2bc988f81..c290b7000a 100644--- a/src/database/mongo/sorted.js+++ b/src/database/mongo/sorted.js@@ -112,6 +112,7 @@ module.exports = function(db, module) {module.sortedSetCard = function(key, callback) {db.collection('objects').count({_key:key}, function(err, count) {+ count = parseInt(count, 10);callback(err, count ? count : 0);});};