Fix previous commit

This commit is contained in:
Dan Stillman 2008-10-13 20:12:19 +00:00
parent 80dc7be1be
commit 71ca2c1b2c

View file

@ -326,7 +326,7 @@ Zotero.Schema = new function(){
while (entries.hasMoreElements()) {
var file = entries.getNext();
file.QueryInterface(Components.interfaces.nsIFile);
if (!file.exists || !file.leafName.match(fileNameRE) || file.isDirectory()) {
if (!file.exists() || !file.leafName.match(fileNameRE) || file.isDirectory()) {
continue;
}
var newObj = new Zotero[Mode](file);