check err

This commit is contained in:
barisusakli
2014-09-09 15:24:03 -04:00
parent 4e6719e0aa
commit dc441c2873

View File

@@ -275,8 +275,8 @@ var async = require('async'),
return;
}
privileges.categories.filterUids('read', results.topic.cid, followers, function(followers) {
if (!followers.length) {
privileges.categories.filterUids('read', results.topic.cid, followers, function(err, followers) {
if (err || !followers.length) {
return;
}