commit 0aa7379fb3b8379abc86c9072d2880971d976d3a parent 75682596df66c69fcaf169757395d12193853d20 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 26 Jun 2008 16:38:22 +0000 Fix upgrade problem with attachment dirs beginning with numbers Diffstat:
| M | chrome/content/zotero/xpcom/schema.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -1564,8 +1564,8 @@ Zotero.Schema = new function(){ while (entries.hasMoreElements()) { var file = entries.getNext(); file.QueryInterface(Components.interfaces.nsILocalFile); - var id = parseInt(file.leafName); - if (!file.isDirectory() || isNaN(id)) { + var id = parseInt(file.leafName); + if (!file.isDirectory() || file.leafName != id) { continue; } if (keys[id]) {