From 8278e524d29fe25365b200292c32fa2434a1462c Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Fri, 28 Jun 2013 12:54:56 -0400 Subject: [PATCH] fixed topic/post count :/ --- src/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts.js b/src/posts.js index 6abee53d40..a34a2751a9 100644 --- a/src/posts.js +++ b/src/posts.js @@ -347,8 +347,8 @@ marked.setOptions({ RDB.mget(['totaltopiccount', 'totalpostcount'], function(err, data) { if(err === null) { var stats = { - topics: data[1]?data[1]:0, - posts: data[0]?data[0]:0 + topics: data[0]?data[0]:0, + posts: data[1]?data[1]:0 }; socket.emit('post.stats', stats);