replaced a literal loop with isIn, WGBP indented 1 line of Group.pm

This commit is contained in:
Colin Kuskie 2007-04-08 05:07:26 +00:00
parent b76351fa83
commit 1a615f8ad8
2 changed files with 2 additions and 4 deletions

View file

@ -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';