summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorJesse Clark <jjclark1982@gmail.com>2010-03-24 00:05:16 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-24 00:05:16 +0100
commit9e572adb765cfb7d814b38ba1bf7f23c9ac47980 (patch)
treea296bacb03f0faa4b151e2e94197473740823006 /Bugzilla
parent455ab8384cc8a33be25c1a90087aca2673b96b69 (diff)
downloadbugzilla-9e572adb765cfb7d814b38ba1bf7f23c9ac47980.tar.gz
bugzilla-9e572adb765cfb7d814b38ba1bf7f23c9ac47980.tar.xz
Bug 504946: Fix "Use of uninitialized value $strs in split at
Bugzilla/Search.pm line 1038" r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 76c4cd950..56f1a5c28 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1048,6 +1048,7 @@ sub GetByWordList {
my ($field, $strs) = (@_);
my @list;
my $dbh = Bugzilla->dbh;
+ return [] unless defined $strs;
foreach my $w (split(/[\s,]+/, $strs)) {
my $word = $w;