From: Jesse Clark Date: Tue, 23 Mar 2010 23:06:11 +0000 (-0700) Subject: Bug 504946: Fix "Use of uninitialized value $strs in split at X-Git-Tag: bugzilla-3.6~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4e0ad4d36396fffed0085bb3bc4da499920edcd;p=thirdparty%2Fbugzilla.git Bug 504946: Fix "Use of uninitialized value $strs in split at Bugzilla/Search.pm line 1038" r=mkanat, a=mkanat --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index aa3e0833b6..91cd7f73bb 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -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;