From b2fad8e43c4b73b08f994b36f9e0769987cc0d26 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 30 Apr 2013 22:15:33 +0800 Subject: Bug 866807: fix undef warnings in quicksearch --- Bugzilla/Search/Quicksearch.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Search') diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index 215cc842e..d45e1b739 100644 --- a/Bugzilla/Search/Quicksearch.pm +++ b/Bugzilla/Search/Quicksearch.pm @@ -482,6 +482,7 @@ sub _translate_field_name { sub _special_field_syntax { my ($word, $negate) = @_; + return unless defined($word); # P1-5 Syntax if ($word =~ m/^P(\d+)(?:-(\d+))?$/i) { @@ -517,6 +518,7 @@ sub _special_field_syntax { sub _default_quicksearch_word { my ($word, $negate) = @_; + return unless defined($word); if (!grep { lc($word) eq $_ } PRODUCT_EXCEPTIONS and length($word) > 2) { addChart('product', 'substring', $word, $negate); -- cgit v1.2.3-24-g4f1b