[Rt-commit] r14713 - rt/3.8/trunk/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Fri Aug 1 13:49:38 EDT 2008
Author: ruz
Date: Fri Aug 1 13:49:37 2008
New Revision: 14713
Modified:
rt/3.8/trunk/lib/RT/CurrentUser.pm
Log:
* fix logic in RT::CurrentUser::LanguageHandle to avoid
tests failures and warnings
Modified: rt/3.8/trunk/lib/RT/CurrentUser.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/CurrentUser.pm (original)
+++ rt/3.8/trunk/lib/RT/CurrentUser.pm Fri Aug 1 13:49:37 2008
@@ -219,7 +219,7 @@
if ( my $lang = $self->Lang ) {
push @_, $lang;
}
- elsif ( !$self->id || $self->id == $RT::SystemUser->id || $self->id == $RT::Nobody->id ) {
+ elsif ( !$self->id || $self->id == ($RT::SystemUser->id||0) || $self->id == ($RT::Nobody->id||0) ) {
# don't use ENV magic for system users
push @_, 'en';
}
More information about the Rt-commit
mailing list