Skip to content

Node.js based forum software built for the modern web

fixed bug where isMemberOfGroupList would return null if there were no groups to check, instead of false

Julian Lamd052db85e072
diff --git a/src/groups.js b/src/groups.js
index c6db87f3c3..72cb0e9b28 100644
--- a/src/groups.js
+++ b/src/groups.js
@@ -365,7 +365,7 @@ var async = require('async'),
}
groupNames = internals.removeEphemeralGroups(groupNames);
if (groupNames.length === 0) {
- return callback(null, null);
+ return callback(null, false);
}
Groups.isMemberOfGroups(uid, groupNames, function(err, isMembers) {