This commit is contained in:
barisusakli
2015-09-28 16:09:33 -04:00
parent c72bb54957
commit e7f87f4ffd
3 changed files with 46 additions and 39 deletions

View File

@@ -68,7 +68,7 @@ module.exports = function(db, module) {
return callback(err, null);
}
callback(null, item[field] || null);
callback(null, item.hasOwnProperty(field) ? item[field] : null);
});
};