From 5ddb50aca468cd78ab746b99f37efddf4c264bb9 Mon Sep 17 00:00:00 2001 From: "Joseph M. Persie" Date: Wed, 4 Nov 2015 20:13:12 -0500 Subject: [PATCH] fixes #753 --- lib/include.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/include.js b/lib/include.js index a88a2458..6880b6da 100644 --- a/lib/include.js +++ b/lib/include.js @@ -158,6 +158,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() {