[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-commit
Subject: [Rt-commit] rt branch, 3.999-trunk,
From: sartak () bestpractical ! com
Date: 2009-12-29 20:41:40
Message-ID: 20091229204153.2B67019B8011 () diesel ! bestpractical ! com
[Download RAW message or body]
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@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(@_);
-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic