]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 545695 - "show_bug.cgi: Use of uninitialized value"
authorReed Loden <reed@reedloden.com>
Thu, 11 Feb 2010 19:34:50 +0000 (13:34 -0600)
committerReed Loden <reed@reedloden.com>
Thu, 11 Feb 2010 19:34:50 +0000 (13:34 -0600)
[r=LpSolit a=LpSolit]

Bugzilla/User.pm

index 7f1b3892530d63e68dd9c0f8c0bfb701580194d7..2ae12efcc36c3cba3af5ed79e7d854b6dd268b5e 100644 (file)
@@ -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;