From 0aa7379fb3b8379abc86c9072d2880971d976d3a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 26 Jun 2008 16:38:22 +0000 Subject: [PATCH] Fix upgrade problem with attachment dirs beginning with numbers --- 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 index fbc8b2410b..9d7b87169d 100644 --- 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]) {