From 75645b089d19ff211dbf19007a7048c0e8f8b521 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 12 Jun 2013 16:38:43 +0800 Subject: Bug 882059: fix "use of uninitialized value" warnings, and ignore some errors/warnings --- Bugzilla/DB/Mysql.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/DB') diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm index 9ddb46622..c430725ef 100644 --- a/Bugzilla/DB/Mysql.pm +++ b/Bugzilla/DB/Mysql.pm @@ -181,7 +181,7 @@ sub sql_fulltext_search { $mode = 'IN BOOLEAN MODE'; # quote un-quoted compound words - my @words = quotewords('[\s()]+', 'delimiters', $text); + my @words = grep { defined } quotewords('[\s()]+', 'delimiters', $text); foreach my $word (@words) { # match words that have non-word chars in the middle of them if ($word =~ /\w\W+\w/ && $word !~ m/"/) { -- cgit v1.2.3-24-g4f1b