Fix an issue with invalid drive before migration

This commit is contained in:
yflory
2017-06-20 12:42:30 +02:00
parent 728272d936
commit fb388f2610
2 changed files with 24 additions and 2 deletions

View File

@@ -1569,7 +1569,7 @@ define([
if (prop === 'atime' || prop === 'ctime') {
return new Date(data[prop]);
}
return filesOp.getTitle(id).toLowerCase();
return (filesOp.getTitle(id) || "").toLowerCase();
};
keys.sort(function(a, b) {
if (getProp(a, prop) < getProp(b, prop)) { return mult * -1; }
@@ -1605,7 +1605,7 @@ define([
return new Date(e[prop]);
}
}
return el.name.toLowerCase();
return (el.name || "").toLowerCase();
};
keys.sort(function(a, b) {
if (getProp(a, prop) < getProp(b, prop)) { return mult * -1; }