From: miker Date: Tue, 5 May 2009 12:56:21 +0000 (+0000) Subject: avoid empty authority search queries X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2b8117789b0f58aafee2d03300104fa88dea976f;p=Evergreen.git avoid empty authority search queries git-svn-id: svn://svn.open-ils.org/ILS/trunk@13067 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm index 5e428fd656..9e3b1f2518 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm @@ -112,6 +112,9 @@ sub find_authority_marc { my $fts_where = $fts->sql_where_clause; my $fts_words = join '%', $fts->words; + + return undef unless ($fts_words); + my $fts_words_where = "f.value LIKE '$fts_words\%'"; my $fts_start_where = "f.value LIKE '$term\%'"; my $fts_eq_where = "f.value = '$term'";