From: Jesse Clark Date: Tue, 23 Mar 2010 23:05:16 +0000 (-0700) Subject: Bug 504946: Fix "Use of uninitialized value $strs in split at X-Git-Tag: bugzilla-3.7.1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e572adb765cfb7d814b38ba1bf7f23c9ac47980;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 76c4cd9509..56f1a5c28c 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;