From 2b8117789b0f58aafee2d03300104fa88dea976f Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 5 May 2009 12:56:21 +0000 Subject: [PATCH] avoid empty authority search queries git-svn-id: svn://svn.open-ils.org/ILS/trunk@13067 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm | 3 +++ 1 file changed, 3 insertions(+) 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'"; -- 2.11.0