fixed move recent replies

v1.18.x
Barış Soner Uşaklı 11 years ago
parent eb9b4a62dc
commit 2d734c1648

@ -4,9 +4,9 @@
var async = require('async'), var async = require('async'),
winston = require('winston'), winston = require('winston'),
db = require('./../database'), db = require('../database'),
posts = require('./../posts'), posts = require('../posts'),
topics = require('./../topics'); topics = require('../topics');
module.exports = function(Categories) { module.exports = function(Categories) {
Categories.getRecentReplies = function(cid, uid, count, callback) { Categories.getRecentReplies = function(cid, uid, count, callback) {
@ -48,7 +48,7 @@ module.exports = function(Categories) {
return winston.error(err.message); return winston.error(err.message);
} }
if (!results.mainPid && results.pids && !pids.length) { if (!results.mainPid && results.pids && !results.pids.length) {
return; return;
} }

Loading…
Cancel
Save