From d53b9b993f8c972da288e550aa327bd87150bb68 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 9 Jan 2016 16:59:10 -0500 Subject: [PATCH] Fix 'debug: false' option in DB.queryAsync() --- chrome/content/zotero/xpcom/db.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 67246df750..1acce28b95 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -788,8 +788,9 @@ Zotero.DBConnection.prototype.columnQueryAsync = function (sql, params) { Zotero.DBConnection.prototype.logQuery = function (sql, params, options) { + if (options && options.debug === false) return; var msg = sql; - if (params.length && (!options || options.debug === undefined || options.debug === true)) { + if (params.length) { msg += " ["; for (let i = 0; i < params.length; i++) { let param = params[i];