Fix upgrade problem with attachment dirs beginning with numbers

This commit is contained in:
Dan Stillman 2008-06-26 16:38:22 +00:00
parent 91b2fb99f1
commit d4b4dbf940

View File

@ -1565,7 +1565,7 @@ Zotero.Schema = new function(){
var file = entries.getNext(); var file = entries.getNext();
file.QueryInterface(Components.interfaces.nsILocalFile); file.QueryInterface(Components.interfaces.nsILocalFile);
var id = parseInt(file.leafName); var id = parseInt(file.leafName);
if (!file.isDirectory() || isNaN(id)) { if (!file.isDirectory() || file.leafName != id) {
continue; continue;
} }
if (keys[id]) { if (keys[id]) {