Invalid ID fix

This commit is contained in:
yflory
2019-06-24 12:28:46 +02:00
parent c39de38500
commit bba3e355d0
2 changed files with 4 additions and 2 deletions

View File

@@ -625,12 +625,12 @@ define([
var root = exp.find([ROOT]);
var toClean = [];
for (var id in fd) {
id = Number(id);
if (!id && id !== 0) {
if (String(id) !== String(Number(id))) {
debug("Invalid file ID in filesData.", id);
toClean.push(id);
continue;
}
id = Number(id);
var el = fd[id];
// Clean corrupted data