fixed topic/post count :/

v1.18.x
Baris Usakli 12 years ago
parent 6a83bf79b4
commit 8278e524d2

@ -347,8 +347,8 @@ marked.setOptions({
RDB.mget(['totaltopiccount', 'totalpostcount'], function(err, data) { RDB.mget(['totaltopiccount', 'totalpostcount'], function(err, data) {
if(err === null) { if(err === null) {
var stats = { var stats = {
topics: data[1]?data[1]:0, topics: data[0]?data[0]:0,
posts: data[0]?data[0]:0 posts: data[1]?data[1]:0
}; };
socket.emit('post.stats', stats); socket.emit('post.stats', stats);

Loading…
Cancel
Save