diff --git a/lib/include.js b/lib/include.js index 928c693b..5b69498b 100644 --- a/lib/include.js +++ b/lib/include.js @@ -159,6 +159,7 @@ Inclusion.include = function (objects, include, options, cb) { var self = this; if (!include || (Array.isArray(include) && include.length === 0) || + (Array.isArray(objects) && objects.length === 0) || (isPlainObject(include) && Object.keys(include).length === 0)) { // The objects are empty return process.nextTick(function() {