summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;