diff options
Diffstat (limited to 'rt/share/html/REST/1.0/Forms/user/ns')
-rwxr-xr-x | rt/share/html/REST/1.0/Forms/user/ns | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rt/share/html/REST/1.0/Forms/user/ns b/rt/share/html/REST/1.0/Forms/user/ns index 16c8902eb..0aca5de4d 100755 --- a/rt/share/html/REST/1.0/Forms/user/ns +++ b/rt/share/html/REST/1.0/Forms/user/ns @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -56,7 +56,7 @@ use RT::Users; my $field = "Name"; $field = "EmailAddress" if $id =~ /\@/; -my $users = new RT::Users $session{CurrentUser}; +my $users = RT::Users->new($session{CurrentUser}); $users->Limit(FIELD => $field, OPERATOR => '=', VALUE => $id); if ($users->Count == 0) { return (0, "No user named $id exists."); |