From 2ccee116433a205f1c1d8a7c54775a902270384f Mon Sep 17 00:00:00 2001 From: John Jones Date: Wed, 25 Oct 2017 10:52:32 -0700 Subject: [PATCH] Fix keyword searching --- lib/WeBWorK/Utils/ListingDB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WeBWorK/Utils/ListingDB.pm b/lib/WeBWorK/Utils/ListingDB.pm index a1204881a9..9c9bbc2b6b 100644 --- a/lib/WeBWorK/Utils/ListingDB.pm +++ b/lib/WeBWorK/Utils/ListingDB.pm @@ -182,8 +182,8 @@ sub makeKeywordWhere { my $kwstring = shift; my @kwlist = keywordCleaner($kwstring); # @kwlist = map { "kw.keyword = \"$_\"" } @kwlist; - @kwlist = map { "kw.keyword = ? " } @kwlist; - my $where = join(" OR ", @kwlist); + my @kwlistqm = map { "kw.keyword = ? " } @kwlist; + my $where = join(" OR ", @kwlistqm); return "AND ( $where )", @kwlist; }