replaced a literal loop with isIn, WGBP indented 1 line of Group.pm
This commit is contained in:
parent
b76351fa83
commit
1a615f8ad8
2 changed files with 2 additions and 4 deletions
|
|
@ -620,11 +620,9 @@ sub getTimeZone {
|
|||
my $zone = $self->session->user->profileField('timeZone');
|
||||
$zone =~ s/ /\_/g;
|
||||
if ($zone) {
|
||||
foreach (@zones) {
|
||||
if ($_ eq $zone) {
|
||||
if (isIn($zone, @zones)) {
|
||||
$self->session->user->{_timeZone} = $zone;
|
||||
return $zone;
|
||||
}
|
||||
}
|
||||
}
|
||||
$self->session->user->{_timeZone} = 'America/Chicago';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue