Merge pull request #282 from wavify/fix-no-quotaroot

Fix getQuotaRoot() crashes when box has no quota root
fork
Brian White 11 years ago
commit f139ce9842

@ -903,8 +903,10 @@ Connection.prototype.getQuotaRoot = function(boxName, cb) {
return cb(err);
var quotas = {};
for (var i = 0, len = quotalist.length; i < len; ++i)
quotas[quotalist[i].root] = quotalist[i].resources;
if (quotalist) {
for (var i = 0, len = quotalist.length; i < len; ++i)
quotas[quotalist[i].root] = quotalist[i].resources;
}
cb(err, quotas);
});

Loading…
Cancel
Save