[open-ils-commits] r13067 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 5 08:56:22 EDT 2009
Author: miker
Date: 2009-05-05 08:56:21 -0400 (Tue, 05 May 2009)
New Revision: 13067
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm
Log:
avoid empty authority search queries
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm 2009-05-05 12:42:06 UTC (rev 13066)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/authority.pm 2009-05-05 12:56:21 UTC (rev 13067)
@@ -112,6 +112,9 @@
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'";
More information about the open-ils-commits
mailing list