diff options
author | mkanat%kerio.com <> | 2005-08-09 14:58:58 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-08-09 14:58:58 +0200 |
commit | 42a0e99d5c916b4123719d7a362e12e65e15fc2f (patch) | |
tree | 4f93a13b5360e7621601384e04e70dc455ff0c46 /Bugzilla/Product.pm | |
parent | 51f0717b4285af69f22b635751b6f4a62d1f7da8 (diff) | |
download | bugzilla-42a0e99d5c916b4123719d7a362e12e65e15fc2f.tar.gz bugzilla-42a0e99d5c916b4123719d7a362e12e65e15fc2f.tar.xz |
Bug 303669: Bugzilla mis-uses perl subroutine prototypes
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/Product.pm')
-rw-r--r-- | Bugzilla/Product.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index 26c80103f..7af2995c2 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -178,7 +178,7 @@ sub classification_id { return $_[0]->{'classification_id'}; } #### Subroutines ###### ############################### -sub get_products_by_classification ($) { +sub get_products_by_classification { my ($class_id) = @_; my $dbh = Bugzilla->dbh; $class_id ||= DEFAULT_CLASSIFICATION_ID; @@ -205,7 +205,7 @@ sub get_products_by_classification ($) { return @products; } -sub get_all_products () { +sub get_all_products { my $dbh = Bugzilla->dbh; my $ids = $dbh->selectcol_arrayref(q{ @@ -218,7 +218,7 @@ sub get_all_products () { return @products; } -sub check_product ($) { +sub check_product { my ($product_name) = @_; unless ($product_name) { |