www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 339225f2fb876f24009a4945ba827e3eceeec5e1
parent e51434416a66ea639ebbc87aa4aa9ada50d829c1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  4 Apr 2013 12:01:17 -0400

Fix possible tag-related sync bug

Diffstat:
Mchrome/content/zotero/xpcom/sync.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -2688,7 +2688,7 @@ Zotero.Sync.Server.Data = new function() { var tagID = Zotero.DB.valueQuery(sql, [libraryID, key]); var sql = "SELECT COUNT(*) > 0 FROM itemTags WHERE tagID=?"; - if (Zotero.DB.valueQuery(sql, [tagID])) { + if (tagID && Zotero.DB.valueQuery(sql, [tagID])) { var sql = "UPDATE tags SET clientDateModified=CURRENT_TIMESTAMP " + "WHERE tagID=?"; Zotero.DB.query(sql, [tagID]);