Skip to content

Commit 413ef92

Browse files
committed
fix: missing var declaration caused params to leak across catalog queries
1 parent 3ff005d commit 413ef92

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

frontend/js/db.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ function _buildCatalogWhere(filters) {
303303
// Shared WHERE/params builder for paged search + count + dept distinct.
304304
// Filters: { terms: string[], depts: string[], title: string, teacher: string }
305305
var clauses = [];
306+
var params = [];
306307
for (var gi = 0; gi < _INVALID_TERMS_GLOB.length; gi++) {
307308
clauses.push("term NOT GLOB ?");
308309
params.push(_INVALID_TERMS_GLOB[gi]);

0 commit comments

Comments
 (0)