commit d53b9b993f8c972da288e550aa327bd87150bb68 parent d0d818840a0176c92019d81ecc761073b4ddfa98 Author: Dan Stillman <dstillman@zotero.org> Date: Sat, 9 Jan 2016 16:59:10 -0500 Fix 'debug: false' option in DB.queryAsync() Diffstat:
| M | 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 @@ -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];