]> 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:05:16 +0000 (16:05 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 23 Mar 2010 23:05:16 +0000 (16:05 -0700)
Bugzilla/Search.pm line 1038"
r=mkanat, a=mkanat

Bugzilla/Search.pm

index 76c4cd9509d134e88b948def2bdf2911a53b6e4b..56f1a5c28cf4e24113d93c24a7c816fc0991d8c9 100644 (file)
@@ -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;