summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-08-09 14:58:58 +0200
committermkanat%kerio.com <>2005-08-09 14:58:58 +0200
commit42a0e99d5c916b4123719d7a362e12e65e15fc2f (patch)
tree4f93a13b5360e7621601384e04e70dc455ff0c46 /Bugzilla/User.pm
parent51f0717b4285af69f22b635751b6f4a62d1f7da8 (diff)
downloadbugzilla-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/User.pm')
-rw-r--r--Bugzilla/User.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index f9efcd248..5462aa5d4 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1156,7 +1156,7 @@ sub get_userlist {
return $self->{'userlist'};
}
-sub insert_new_user ($$;$$) {
+sub insert_new_user {
my ($username, $realname, $password, $disabledtext) = (@_);
my $dbh = Bugzilla->dbh;
@@ -1201,7 +1201,7 @@ sub insert_new_user ($$;$$) {
return $password;
}
-sub is_available_username ($;$) {
+sub is_available_username {
my ($username, $old_username) = @_;
if(login_to_id($username) != 0) {
@@ -1237,7 +1237,7 @@ sub is_available_username ($;$) {
return 1;
}
-sub login_to_id ($) {
+sub login_to_id {
my ($login) = (@_);
my $dbh = Bugzilla->dbh;
# $login will only be used by the following SELECT statement, so it's safe.
@@ -1252,7 +1252,7 @@ sub login_to_id ($) {
}
}
-sub UserInGroup ($) {
+sub UserInGroup {
return defined Bugzilla->user->groups->{$_[0]} ? 1 : 0;
}