fixes crash is sets is empty

v1.18.x
barisusakli 10 years ago
parent bfc9cae1b2
commit 3865fd3ab9

@ -128,7 +128,7 @@ module.exports = function(db, module) {
module.isMemberOfSets = function(sets, value, callback) {
if (!Array.isArray(sets) || !sets.length) {
return callback();
return callback(null, []);
}
value = helpers.valueToString(value);

Loading…
Cancel
Save