diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js index 0085beff32..3a3476ff68 100644 --- a/chrome/content/zotero/xpcom/data/tags.js +++ b/chrome/content/zotero/xpcom/data/tags.js @@ -423,16 +423,14 @@ Zotero.Tags = new function() { this._load = function () { - if (!arguments[0] && !this._reloadCache) { - return; - } - - if (this._reloadCache) { + if (!arguments[0]) { + if (!this._reloadCache) { + return; + } _tags = {}; + this._reloadCache = false; } - this._reloadCache = false; - // This should be the same as the query in Zotero.Tag.load(), // just without a specific tagID var sql = "SELECT * FROM tags WHERE 1";