diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 15a91dda9..691e0daa6 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -459,7 +459,7 @@ Zotero.Utilities = { * @return {String} */ "htmlSpecialChars":function(str) { - if (str && typeof str != 'string') { + if (str !== undefined && typeof str != 'string') { str = str.toString(); }