summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-04-30 16:15:33 +0200
committerByron Jones <bjones@mozilla.com>2013-04-30 16:15:33 +0200
commitb2fad8e43c4b73b08f994b36f9e0769987cc0d26 (patch)
tree28483d008867c5caefc71ba2fe5996ee1541bed9 /Bugzilla
parent1a482cef215082702cc7b6c4be3eaa22d24b4849 (diff)
downloadbugzilla-b2fad8e43c4b73b08f994b36f9e0769987cc0d26.tar.gz
bugzilla-b2fad8e43c4b73b08f994b36f9e0769987cc0d26.tar.xz
Bug 866807: fix undef warnings in quicksearch
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search/Quicksearch.pm2
1 files changed, 2 insertions, 0 deletions
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);