[Rt-commit] rt branch, 3.999-trunk, updated. 1d3035fd3ea8d2e1af5b55b6e1406fbe52bf177e
sartak at bestpractical.com
sartak at bestpractical.com
Tue Dec 29 15:41:40 EST 2009
The branch, 3.999-trunk has been updated
via 1d3035fd3ea8d2e1af5b55b6e1406fbe52bf177e (commit)
from 144befc2fa643ef27bc1c870a5a7b15654282618 (commit)
Summary of changes:
lib/RT/CurrentUser.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 1d3035fd3ea8d2e1af5b55b6e1406fbe52bf177e
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Dec 29 15:41:31 2009 -0500
Improve clarity
diff --git a/lib/RT/CurrentUser.pm b/lib/RT/CurrentUser.pm
index d171a2d..2f8fa81 100755
--- a/lib/RT/CurrentUser.pm
+++ b/lib/RT/CurrentUser.pm
@@ -104,7 +104,7 @@ and log an error.
sub new {
my $class = shift;
- if ($#_ == 0 && ref $_[0] && ref $_[0] eq 'RT::Model::User') {
+ if (@_ == 1 && ref $_[0] && ref $_[0] eq 'RT::Model::User') {
unshift @_, 'user_object';
}
$class->SUPER::new(@_);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list