From ed629ca0a2680ebeed503ca7d071fbf8ab8dfbec Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 3 Nov 2009 19:46:13 +0000 Subject: Bug 526271: Uninitialized value in can_enter_product() due to a missing argument - Patch by Frédéric Buclin r=ghendricks a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/User.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 9cb53fe34..3843062fb 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -714,6 +714,7 @@ sub get_selectable_classifications { sub can_enter_product { my ($self, $input, $warn) = @_; my $dbh = Bugzilla->dbh; + $warn ||= 0; if (!defined $input) { return unless $warn == THROW_ERROR; -- cgit v1.2.3-24-g4f1b