From: Reed Loden Date: Thu, 11 Feb 2010 19:34:50 +0000 (-0600) Subject: Bug 545695 - "show_bug.cgi: Use of uninitialized value" X-Git-Tag: bugzilla-3.4.6~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d47b374e8ebb98c5f3c41d2ab141941a2a0744;p=thirdparty%2Fbugzilla.git Bug 545695 - "show_bug.cgi: Use of uninitialized value" [r=LpSolit a=LpSolit] --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 7f1b389253..2ae12efcc3 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -697,6 +697,7 @@ sub get_selectable_classifications { sub can_enter_product { my ($self, $product_name, $warn) = @_; my $dbh = Bugzilla->dbh; + $warn ||= 0; if (!defined($product_name)) { return unless $warn == THROW_ERROR;