]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 504946: Fix "Use of uninitialized value $strs in split at
authorJesse Clark <jjclark1982@gmail.com>
Tue, 23 Mar 2010 23:06:11 +0000 (16:06 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 23 Mar 2010 23:06:11 +0000 (16:06 -0700)
Bugzilla/Search.pm line 1038"
r=mkanat, a=mkanat

Bugzilla/Search.pm

index aa3e0833b69ee94552c1a465c341ad09c59710f3..91cd7f73bb941a53b4f918c5be88f13d2a39ca2b 100644 (file)
@@ -1043,6 +1043,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;