diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 94ea640532..615c67fcf8 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3297,7 +3297,7 @@ Zotero.Item.prototype.getAttachmentLastPageIndex = function () { var id = this._getLastPageIndexSettingKey(); var val = Zotero.SyncedSettings.get(Zotero.Libraries.userLibraryID, id); - if (val !== null && typeof val != 'number' || val != parseInt(val)) { + if (val !== null && (typeof val != 'number' || val != parseInt(val))) { Zotero.logError(`Setting contains an invalid attachment page index ('${val}') -- discarding`); return null; }