summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi
index e53341c61..caea2186b 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -797,7 +797,7 @@ sub check_user {
$vars->{'user_id'} = $otherUserID;
}
elsif ($otherUserLogin) {
- $otherUser = Bugzilla::User->new_from_login($otherUserLogin);
+ $otherUser = new Bugzilla::User({ name => $otherUserLogin });
$vars->{'user_login'} = $otherUserLogin;
}
($otherUser && $otherUser->id) || ThrowCodeError('invalid_user', $vars);