commit 009a4ad5201eb25368a5f6452f73b7bd6206eaed
parent 3a18dcb70f8f4b460f17fb729156ae4082ed0dc5
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 15 Aug 2006 04:59:09 +0000
Fix search brokenness from r453
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/search.js b/chrome/chromeFiles/content/scholar/xpcom/search.js
@@ -308,7 +308,7 @@ Scholar.Search.prototype._buildQuery = function(){
case 'collectionID':
condSQL += "collectionID ";
if (tables[i][j]['operator']=='isNot'){
- sql += "NOT ";
+ condSQL += "NOT ";
}
// Add given collection id
condSQL += "IN (?,";
@@ -376,7 +376,7 @@ Scholar.Search.prototype._buildQuery = function(){
break;
case 'is':
- sql += '=?';
+ condSQL += '=?';
condSQLParams.push(tables[i][j]['value']);
break;
@@ -386,7 +386,7 @@ Scholar.Search.prototype._buildQuery = function(){
break;
case 'greaterThan':
- sql += '>?';
+ condSQL += '>?';
condSQLParams.push({int:tables[i][j]['value']});
break;